You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be4b1b5
Browse filesBrowse the repository at this point in the historyBrowse files
Delete schedule jitter; single-process scheduling has no herd to spread
add_jitter smeared every computed next-run by a random offset to avoid a
thundering herd, but datasette-cron is single-process by contract (see the
multi-worker warning in the README), so there is no herd to spread out. The
protection bought nothing and cost precision: "0 8 * * *" did not fire at
08:00:00, a 60-second interval meant 60-66 seconds, the UI countdown was
approximate, and three tests carried timing tolerances to accommodate it.
Both call sites (add_task and _tick) now use sched.next_run(now) directly,
and the tolerance assertions are tightened to exact comparisons, which makes
those tests stronger rather than weaker.
The jitter in _backoff_delay stays: retry jitter is defensible for a
different reason -- it decorrelates repeated failures against a flaky
dependency -- and is untouched here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments