Once
How vigilo coordinator once executes one configurable bounded orchestration
cycle and exits. It first delivers pending execution controls and retries quiescent cancellation cleanup.
It then resumes accepted creating runs with execution enabled and an available lease, followed by chunk
lease recovery, dispatch, receipt aggregation, finalization, and outbox publication. Dispatch work is
claimed through a run_id + run_shard cursor, and each operation selects a
partition-local chunk window before inserting one outbox event record per chunk.
The scoped snapshot statement also reads the routing records; pool selection
reuses them without another control-database borrow. Execution admission retains
the ownership fence.
Execution Flow
Decision Flow
Receipt aggregation visits ready shards in fair rounds, revisiting shards with remaining ready work within separate per-database page and scheduling-time budgets. Independent shards and databases advance with bounded concurrency. Each page has its own transaction and ownership claim; expiry of the scheduling budget stops additional page admission while in-flight work remains subject to the database deadline. See the aggregation controls.
Finalization has its own candidate limit and reads summaries in one batch per execution database without advancing receipt aggregation. Unavailable, open, or invalid shard summaries defer only their candidate; other runs continue. See the settlement contract.
The coordinator bounds execution connection waits and defers aliases that encounter connection failures from lease recovery through outbox publication for the rest of the cycle. Deferred invocation database operations share each placement's pool capacity across polling and expiry. HTTP requests run outside that limit. When configured, the agent destination policy checks addresses before each deferred resubmission, status poll, and cancellation. Dispatch excludes deferred aliases before claiming a cursor, and finalization waits for every required shard. See the database runtime limits.