Orchestrator Runtime ​
The orchestrator runtime is the generated part of a TPF application that starts the pipeline, calls each step in order, tracks execution state when configured, and exposes generated REST, gRPC, LOCAL, or FUNCTION-platform entry points.
Guide Pages ​
- Overview covers runtime modes, generated entry points, and generated structure.
- Queue-Async Runtime covers durable execution, crash behaviour, idempotency, providers, and HA baseline configuration.
- Checkpoint Handoff covers reliable cross-pipeline publication and admission.
- Await Boundaries covers durable external suspend/resume steps.
Runtime Modes ​
TPF supports two orchestrator runtime modes:
SYNC(default): in-process request/response execution.QUEUE_ASYNC: background async execution with stored execution state, dispatch, retry, recovery, and dead-letter handling.
Set mode with:
properties
pipeline.orchestrator.mode=SYNC
# or
pipeline.orchestrator.mode=QUEUE_ASYNCUse Queue-Async Runtime before relying on background execution in production-style environments.
Generated Transport Entry Points ​
Generated orchestrator entry points use the selected transport. Transport modes are REST, gRPC, and LOCAL; platform modes are COMPUTE and FUNCTION.
- REST:
POST /pipeline/runPOST /pipeline/run-asyncGET /pipeline/executions/{executionId}GET /pipeline/executions/{executionId}/resultPOST /pipeline/ingestGET /pipeline/subscribe
- gRPC:
RunRunAsyncGetExecutionStatusGetExecutionResultIngestSubscribe
- LOCAL:
- in-process client calls for same-JVM deployments
In FUNCTION platform mode, TPF also generates provider handler artifacts. These are not a transport mode:
PipelineRunFunctionHandlerPipelineRunAsyncFunctionHandlerPipelineExecutionStatusFunctionHandlerPipelineExecutionResultFunctionHandler
Generated Structure ​
text
orchestrator-svc/
├── src/main/java/<base>/orchestrator/service/
│ ├── PipelineRunResource.java
│ ├── OrchestratorGrpcService.java
│ ├── PipelineRunFunctionHandler.java
│ ├── PipelineRunAsyncFunctionHandler.java
│ ├── PipelineExecutionStatusFunctionHandler.java
│ └── PipelineExecutionResultFunctionHandler.java
└── src/main/resources/application.properties