Skip to main content

Module cron

Module cron 

Source
Expand description

Persistent job storage: CRUD on db_jobs (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.1), in the same store as the db_cron_jobs it replaced: the shared store (store.db), which is per channel under isolated auth. db_cron_jobs stays as it was for older builds; m0040_cron_jobs_to_db_jobs copied its rows here, keeping their ids. See also SPEC_CRON_LOOP_ROBUSTNESS_2026_06_25.md.

A row is a job definition (backend::jobs::definition) plus its runtime state (fires, misses, limits). The cron trigger and the message action keep the columns db_cron_jobs had (expression, prompt, target, target_uid), so the slug migration and older readers see the same shape; the other kinds’ fields are in action.

Structs§

CronJob

Enums§

FireProof
Who stands behind a job’s current definition, when a fire of it can be proven.

Constants§

WRITER_OPERATOR
The app’s own window wrote the definition.
WRITER_UNKNOWN
The definition was written by a caller nothing identified (no agent token, not the app’s own window).