Merge pull request #117 from kerberos-io/workflows->-remove-kind

Remove 'kind' attribute from workflows and update related comments fo…
This commit is contained in:
Kilian
2026-06-17 12:22:51 +02:00
committed by GitHub
2 changed files with 5 additions and 12 deletions

View File

@@ -19,10 +19,6 @@ Each enabled stage contributes one descriptor:
"any" (default; fire on the first matching upstream) or "all"
(a join; fire only once every need has resolved and matched).
Carried through verbatim; omitted when unset (engine defaults any).
kind delegated-ingest stages only: the ingest handler the engine routes
the stage's typed payload through (e.g. "detection"). Carried
through verbatim; omitted when unset (engine treats the stage as
self-persisting).
*/}}
{{- define "kerberoshub.workflows.stageRegistry" -}}
{{- $entries := list -}}
@@ -34,7 +30,6 @@ Each enabled stage contributes one descriptor:
{{- if $service }}{{- with $service.queue }}{{- $_ := set $entry "queue" . -}}{{- end }}{{- end }}
{{- with $stage.needs }}{{- $_ := set $entry "needs" . -}}{{- end }}
{{- with $stage.needsMode }}{{- $_ := set $entry "needsMode" . -}}{{- end }}
{{- with $stage.kind }}{{- $_ := set $entry "kind" . -}}{{- end }}
{{- $entries = append $entries $entry -}}
{{- end -}}
{{- end -}}

View File

@@ -670,13 +670,11 @@ kerberoshub:
# need has resolved and each condition matches, and only once.
operation: anpr
dispatch: conditional
# kind routes this stage's typed result (the PostDetectionsRequest its
# demo worker compiles from the classify car boxes and returns in the run
# Payload) through the engine's shared ingest core, which persists it into
# the detections collection so the recording's edit-media modal shows the
# car boxes. Without it the result is only recorded for routing, not
# persisted.
kind: detection
# The demo worker hands back a detection block (the car detection it
# compiles from the classify boxes, in the run Payload) that the engine's
# shared ingest core persists into the detections collection, so the
# recording's edit-media modal shows the car boxes. The engine routes
# ingest by each block's type, so no per-stage wiring is needed here.
# Default routing — run anpr whenever classify reports a car (any camera).
needsMode: any
needs: