Expand description
FlowRuntime — subscribes to EventLog and dispatches events to compiled flows
The FlowRuntime is the main execution engine for declarative event flows. It runs as a background task that:
- Subscribes to the EventLog (from a configurable seek position)
- For each incoming event, finds matching flows via EventMatcher
- Executes the pipeline operators sequentially
- Handles fan-out by recursively processing sub-pipelines
- Logs errors without propagating them (one flow’s error doesn’t affect others)
§Usage
ⓘ
let runtime = FlowRuntime::new(compiled_flows, event_log, link_service, fetchers);
let handle = runtime.run(SeekPosition::Latest);
// handle is a JoinHandle that can be used to monitor/cancel the runtimeStructs§
- Flow
Runtime - The main flow execution runtime