Start
How vigilo coordinator start runs configurable coordinator cycles continuously
until shutdown or service failure. Each cycle resumes a bounded number of
expired creating runs before chunk lease recovery and normal dispatch.
Dispatch claims one open run_id + run_shard cursor per window. Its scoped snapshot
statement also reads the routing records, allowing pool selection without a second
control-database borrow. Execution admission still checks the ownership fence.
Dispatch and
recovery insert one run.chunk.ready outbox event record per chunk, including
the chunk's run_shard, execution database_alias, and write_epoch in the
payload. Publication preserves that route hint so workers can claim
chunk-local work without an extra control-database routing lookup.
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. Dispatch excludes deferred aliases before claiming a cursor, and finalization waits for every required shard. See the database runtime limits.