Menu

1 / 2

One typo in a timezone could stop every scheduled job in Rerun

DEV Community: typescript·Ashok Ram·8 days ago
#lLIANB6R
#devtotypescript#devto#dev#timezone#rerun
Long article (576 words) — no AI summary yet.
Reading 0:00
15s threshold

timezone: "Eastern" looks harmless. In Rerun it was saved without a word, and on the scheduler's next pass it could throw an error that kept every job lined up after it from even being checked.

I came across it while reading the source. The report is issue #21 and the fix is rerun-build/rerun#22 .

The setup

Rerun lets you host your own team of digital coworkers, each handling jobs from your tools on a timetable. A coworker's repeating jobs are its routines. Each routine has a cron expression ( 0 9 * * * means 9:00 every day) and, optionally, a timezone. Valid timezone names come from the IANA list, things like Europe/Paris , plus a few aliases such as UTC .

Every 30 seconds the engine runs a tick: it loops over all routines of all active coworkers and fires the ones that are due. To know if a routine is due, it asks croner, the cron library, for the next run.

Saved fine, broke later

It's a bit like a booking form that happily accepts "Febtember 31".…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.