Debugging Duplicate and Missing Cron Runs Across a DST Transition
A daily report scheduled for 02:30 Europe/Berlin is ambiguous on 25 October 2026, when that local time occurs at both 00:30 and 01:30 UTC. The article argues that the correct behavior depends on a scheduling contract, such as running once per local business date or once per real UTC instant, and that jobs on the same machine may follow different rules. It recommends keying business operations on job name and intended local date, avoiding recomputing slots from the worker's clock on retries, and recording delivery attempts separately from completed operations. It also suggests testing fixtures for both ambiguous instants, a normal summer date, and delayed redeliveries, then comparing expected slots against completed operations and delivery history. Because scheduler policies vary, the author advises validating the actual schedule and dispatch records alongside application-level tests.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in