Running pipelines
Once a pipeline config is stored, you start executions against it, monitor them, pause specific routes, and cancel runaways.
Start an execution
Section titled “Start an execution”factflow config run CONFIG_IDOr via API:
curl -X POST http://localhost:8000/api/v1/executions \ -H 'Content-Type: application/json' \ -d '{"config_id": "CONFIG_ID"}'Response contains execution_id and initial status running.
List executions
Section titled “List executions”factflow execution listfactflow execution list --status runningfactflow execution list --status failed --limit 20 --offset 0Filter: running, completed, failed, cancelled, interrupted.
Inspect one
Section titled “Inspect one”factflow execution get EXEC_IDShows status, source config id, start/end times, route-level progress.
Wait for completion (blocking)
Section titled “Wait for completion (blocking)”factflow execution wait EXEC_IDExit 0 on completed, non-zero on failed or cancelled. Useful in shell scripts and CI:
factflow config run CONFIG_ID | jq -r .execution_id | xargs factflow execution waitecho "exit code: $?"Tune timeout if needed:
factflow --timeout 1h execution wait EXEC_IDCancel
Section titled “Cancel”factflow execution cancel EXEC_IDCancellation is graceful: the orchestrator signals every processor, processors stop consuming new messages, in-flight messages complete (or are cancelled with asyncio.CancelledError — adapters must be cancel-safe), then the execution transitions to cancelled.
DAG view
Section titled “DAG view”factflow execution dag EXEC_IDReturns nodes (routes + adapters) and edges (queue links). Useful for understanding what the orchestrator constructed from the YAML.
factflow execution stats EXEC_IDDerived from lineage: message counts per adapter, failures, average duration.
List execution routes
Section titled “List execution routes”factflow execution routes EXEC_IDEvery running route under this execution, with its queue name and processor state.
Pause and resume routes (global)
Section titled “Pause and resume routes (global)”Routes can be paused globally — across all executions that share the route name:
factflow pipeline pause ROUTE_IDfactflow pipeline resume ROUTE_IDUse case: a downstream service is degraded; pause the route writing to it, let upstream queue up, resume when the downstream is back. Messages in the broker queue survive the pause.
Global metrics
Section titled “Global metrics”factflow system metricsPoint-in-time snapshot of the orchestrator: total messages received / completed / failed / in-flight, running route count.
Pipeline-level metrics
Section titled “Pipeline-level metrics”factflow pipeline listfactflow pipeline metrics ROUTE_IDPer-route throughput and latency.
Replay
Section titled “Replay”Replay produces a new execution from a prior one’s storage. See the replay guide for full mechanics.
Related
Section titled “Related”- Replay guide — re-run stages without re-fetching
- Lineage guide — debug a failed execution
- Concept: Orchestration — what runs where
- Reference: CLI execution