Expand description
Which events a job has heard of (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §3.7): delivery is at least
once, so a source may name the same event twice, and the job’s (job_id, event_id) here is what turns the second
into nothing. It sits beside the run ledger, in the identity store every channel and version on this computer
shares, so two instances sharing a job don’t both start a run for one event.
The id table keeps only the id. The event’s data is kept apart, per run, in db_job_event_inputs, for as long as
the run may still need it: while it waits out a delay or its turn, and across a retry. The run’s end (or KEEP_MS)
lets it go. A job forgets an id after KEEP_MS: a source that repeats an id after that is a new event.
Constants§
- INPUT_
KEEP_ MS - How long a run’s input is kept, from the event: a run may be held back by a delay of up to a week and then wait further for its turn, so its input outlives the id by that week.
- KEEP_MS
- How long a job remembers an event id.