Orchestration Service
continuum-orchestration-service is the interpreter at the heart of the platform. It takes the graph you drew on the canvas β plain JSON nodes and edges β and executes it as a real, durable Temporal workflow: deciding what runs when, routing each node to the right worker, wiring outputs to inputs, and reporting every state change back to the browser.
It is a standalone Spring Boot service (image projectcontinuum/continuum-orchestration-service) that registers two things with Temporal:
| Component | Task queue | Role |
|---|---|---|
ContinuumWorkflow | WORKFLOW_TASK_QUEUE | The workflow implementation β interprets the graph and drives the execution loop |
InitializeActivity | ACTIVITY_TASK_QUEUE_INITIALIZE | Resolves which worker task queue runs each node type, via the API server's node registry |
The orchestration service only schedules nodes. Every node's execute() runs inside a feature worker, as a Temporal activity. The orchestrator handles control flow and passes data references between nodes; the Parquet data itself goes straight between workers and MinIO.
Where it sitsβ
The API server, workers and orchestrator never call each other to execute nodes. They all communicate through Temporal, which is why a crashed worker or orchestrator pod loses no progress.
From graph to Temporal workflowβ
When the API server starts a ContinuumWorkflow with the workflow model (ContinuumWorkflowModel: nodes, edges, node properties), the orchestrator interprets it in four phases.
- Initialize.
WorkflowActivityInitializercollects the unique node types (theNodeData.idclass names) and callsInitializeActivity.getNodeTaskQueue(). That activity callsPOST /api/v1/node-explorer/nodes/task-queueson the API server. If any node type has no registered worker yet, the activity fails and Temporal retries it, so a workflow can be started before its workers come up. The orchestrator then builds a separateIContinuumNodeActivitystub for each node instance, routed to that node's task queue and carrying its own retry policy. - Find ready nodes. A node is ready when every parent has completed and produced output on every port this node is connected to, all of its input ports are wired, and it hasn't run or started yet. A node with an unconnected input port is marked
SKIPPED. - Dispatch in parallel. For each ready node, the orchestrator maps each incoming edge's
sourceHandleoutput to the node'stargetHandleinput, marks the nodeBUSY(animating its incoming edges on the canvas), and startsIContinuumNodeActivity.run(node, inputs)withAsync.function {}. Independent branches of the DAG run concurrently. - Wait and record.
Promise.anyOf()waits for whichever pending node finishes first. If the outputs contain the$errorsystem port, the node is markedFAILEDand recorded in the error map. Otherwise it is markedSUCCESSand its outputs become available to downstream nodes. The loop goes back to step 2 until no nodes are ready and none are pending.
A node's output PortData carries a remote reference to its Parquet file in MinIO, not the rows themselves. The orchestrator passes that reference to downstream nodes as their input, so Temporal history stays small no matter how much data a node produces. See Data Format.
Failure, retries & cancellationβ
| Situation | What the orchestrator does |
|---|---|
| A node activity throws, times out, or exhausts its retries | Converts the ActivityFailure into a $error output for that node only. Independent branches keep running; descendants of the failed node simply never become ready. |
| One or more nodes failed by the end | Publishes FAILED and ends the workflow with a non-retryable ApplicationFailure (WorkflowExecutionFailed) carrying nodeErrors and the successful nodeToOutputsMap. |
| User cancels | The API server first sends the notifyCancelling signal, which pins the status to CANCELLED, then issues Temporal cancel(). Nodes that are still BUSY are marked CANCELLED and a final event is published. |
| User terminates | The API server sends the notifyTerminating signal, which pins the status to TERMINATED and updates the search attribute, then issues Temporal terminate(). Workflow code can't run after a terminate, so the signal is the orchestrator's last chance to report. |
Default activity options per node stub:
startToCloseTimeout: 60 days (long-running nodes are expected)heartbeatTimeout: 5 minutes (workers heartbeat in the background, every 60 s by default)- Retry: exponential backoff (coefficient 2.0, max interval 100 s), up to 500 attempts
A node can override any of these retry fields through NodeData.retryOptions (initialIntervalSeconds, backoffCoefficient, maximumIntervalSeconds, maximumAttempts, doNotRetry). Fields it doesn't set fall back to the defaults.
Live statusβ
The orchestrator is the only source of execution status events. Whenever a node starts, completes or reports progress, it publishes a WorkflowUpdateEvent to the Kafka topic continuum-core-event-WorkflowExecutionSnapshot, keyed by workflow ID. The event contains the full workflow model (node statuses, animated edges), every node's outputs and errors, overall progress (completed nodes Γ· total nodes), owner, and schedule ID. continuum-message-bridge consumes this topic, forwards each event to MQTT for the browser, and syncs it to the database.
Workers report fine-grained progress by sending the updateNodeProgressSignal signal to the running workflow. The orchestrator stores the progress on the node and publishes a fresh event.
The orchestrator also maintains two Temporal search attributes on every run, which the API server uses to list and filter executions:
Continuum:ExecutionStatus(Int) β started / completed / failed / cancelled / terminatedContinuum:WorkflowFileName(Keyword) β the workflow file the run came from
The temporal-search-attributes-init service in the local compose stack creates both attributes before the orchestrator starts.
Determinism rulesβ
ContinuumWorkflow is Temporal workflow code, so after a crash it is replayed from history, not re-run from scratch. That rules out:
- I/O,
Date.now(), random values or static loggers in workflow code. UseWorkflow.getLogger(), and put side effects in activities (asInitializeActivitydoes for the REST call). - Publishing duplicate events during replay. The status reporter checks
WorkflowUnsafe.isReplaying()and only publishes during live execution.
Configurationβ
| Property / env var | Default | Purpose |
|---|---|---|
TEMPORAL_SERVER_ADDRESS | localhost:7233 | Temporal frontend |
TEMPORAL_NAMESPACE | default | Temporal namespace |
CONTINUUM_API_SERVER_BASE_URL (continuum.core.orchestration.api-server-base-url) | http://localhost:8081 | API server used to resolve node task queues |
CONTINUUM_KAFKA_MAIN_BROKER_LIST | localhost:39092,β¦ | Kafka brokers for status events |
CONTINUUM_KAFKA_MAIN_SCHEMA_REGISTRY | http://localhost:38080 | Schema Registry |