Expand description
Cloud job runs in the run ledger (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §4.1).
A cloud job reports a run with up to three events: started, heartbeat, finished. Each is one write here,
in one transaction, so two instances reading the same event off MuxBus (one ledger, many channels) cannot both
write it. A real cloud run’s row has no scheduled_for_ms (its slot is in links): that column is the unique
slot lease, and the watchdog’s missed row for a slot holds it. An event for a slot the watchdog already gave up
on takes that row over, so the run reads “late” instead of appearing twice.
Structs§
- Event
Mark - The event being written: its id is remembered in the same transaction as its effect, so an event that failed to write is not taken for one already seen when it is sent again.
Enums§
- Cloud
Finish - What a
finishedevent did. - Cloud
Start - What a
startedevent did.
Functions§
- cloud_
run_ id - The ledger id of a cloud run: the same for all of its events.