Interactive engineering lab

CronJob missed schedules: deadlines, concurrency policy and controller downtime

CronJob missed schedules: deadlines, concurrency policy and controller downtime. Replay controller downtime, deadlines and concurrency policies over a timeline.

By Sandeep Belgavi · Published 2026-11-08

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    Dinky runs an hourly reconciliation CronJob for Belgavi's Book Store. When the controller is down, the CronJob is suspended, or the previous run is still going, which scheduled times become Jobs, which start late and which are silently dropped? Pick a schedule, a starting deadline, a concurrency policy, a job duration and a controller reaction lag, add downtime or suspension windows, and replay the controller's decisions as Kubernetes v1.37.2 makes them.

    Change one assumption at a time

    Start from a preset and change one control. In controller_down_no_deadline set the deadline to 200 and the warning disappears while the outcome stays one start. In forbid_long_job switch Forbid to Allow and three jobs overlap, or to Replace and no job ever finishes. In forbid_with_deadline set the deadline back to -1 and the late starts return. In deadline_below_lag raise the deadline to 20 seconds and every run starts. Window lines look like down 30 142 or suspend 10 200, in minutes.

    Expected outcomes

    controller_down_no_deadline: 112 of 150 times never start; at 02:22:00 a TooManyMissedTimes warning and one job for 02:22:00. controller_down_deadline_200: the same starts, no warning. hourly_down_two_days: 48 hourly runs never start and there is no warning. forbid_long_job: 3 of 8 start, two of them late, seven JobAlreadyActive skips. forbid_with_deadline: 3 of 8, none late. replace_long_job: 8 start, 7 are deleted, none finishes. allow_overlap: 3 jobs at once. deadline_below_lag: nothing starts and no event is recorded. suspended_then_resumed: a warning and one start after the suspension.

    Read the table and the trace

    The metrics count scheduled times inside the horizon, jobs started, late starts, finished jobs, times that never started, warnings, Forbid skips, replaced jobs and the most jobs running at once. The table lists every controller decision with its time, event, the scheduled time it concerns and the reason. The trace walks through the same decisions and ends with a summary.

    Reset and export

    Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every decision, the metrics, the trace and the stated limits.

    Limits

    A model read from the controller source at v1.37.2, not a cluster run. Only schedules of every N minutes, whole seconds, a fixed reaction lag, and no API errors, informer delays, Job failures or retries. Older controllers behaved differently: before v1.21 the default controller started nothing when more than 100 times were missed.

    Views are my own and do not represent any employer, past or present.