Part of Hosting by frameworkHosting · Scheduled jobs

Cron jobs: timezones, daylight saving and missed runs.

Canner reads every cron expression in UTC, so a schedule never skips or doubles at a daylight saving change, but its local time moves by an hour twice a year. Missed occurrences aren’t replayed: an overdue job runs once, then the schedule resumes. Each call gets 10 seconds, transient failures are retried twice, and repeated failures email your admins.

Facts checked

Your schedule is in UTC, your users aren’t

A scheduled job on Canner is a cron expression and a URL in your app. The five fields are the standard minute hour day-of-month month day-of-week, and all of them are read in UTC. The form shows the next run time as you type, which is the fastest way to catch an expression that means something other than you think.

UTC has no daylight saving time, so 0 13 * * * fires at 13:00 UTC every day of the year. What changes is the local time. Most of Canada sets clocks forward on the second Sunday in March and back on the first Sunday in November, at 02:00 local time. That makes the next changes Sunday, November 1, 2026 and Sunday, March 14, 2027. For Montréal and Toronto, that turns these schedules into:

Expression (UTC)Montréal, summer (EDT, UTC−4)Montréal, winter (EST, UTC−5)
0 13 * * * †09:0008:00
0 4 * * * †00:00 (midnight)23:00 the previous day
0 5 * * * †01:0000:00 (midnight)
30 6 * * 1 †Monday 02:30Monday 01:30
*/15 * * * * †Every 15 minutesEvery 15 minutes

† Competitor details come from each vendor’s own published pages on the dates shown; prices and plans change, so check the vendor before you decide. `0 13 * * *` (2026-10-29) · `0 4 * * *` (2026-10-29) · `0 5 * * *` (2026-10-29) · `30 6 * * 1` (2026-10-29) · `*/15 * * * *` (2026-10-29)

The midnight report that picks the wrong day

The row that bites is 0 4 * * *. All summer it runs at local midnight, and a handler that asks for “yesterday’s orders” gets the day that just ended. From November it runs at 23:00 the day before, so “yesterday” is now two days back and today’s last hour is missing from both reports.

Don’t compute the period from the moment the job runs. Compute it in the business’s timezone (America/Toronto for Montréal) from a date you pass or store, or run the job a few hours after midnight in either season (0 8 * * * is 04:00 or 03:00 local) so the boundary never moves across it.

What daylight saving does to other schedulers

Schedulers that read cron in a local timezone have to decide what happens in the hour that doesn’t exist in March and the hour that happens twice in November. They don’t all decide the same way:

SchedulerTimezone of the expressionAt a clock change
Canner scheduled jobsUTC, alwaysNothing skips or repeats; local time shifts by an hour
Classic cron (Debian cron) †The system timezone (/etc/timezone), one per daemonJobs in a skipped hour run soon after the change; jobs in a repeated hour aren’t run again. Wildcard jobs follow the new time
Vercel Cron Jobs † †UTC, alwaysNothing skips or repeats. Invoked with a GET, not retried on failure
Solid Queue recurring tasks † †The app’s config.time_zone by default, or a zone after the expression (0 9 * * * America/Toronto)Parsed by Fugit, which accepts an IANA zone after the cron string
GoodJob cron † †Fugit’s rules: a zone after the expression, otherwise Ruby’s timezoneAs Fugit evaluates it in that zone
pg-boss schedule() †UTC by default, or the tz optionChecked every 30 seconds; at most one job per minute
Graphile Worker crontab †UTC onlyNothing skips or repeats; missed runs are backfilled only with ?fill=

† Competitor details come from each vendor’s own published pages on the dates shown; prices and plans change, so check the vendor before you decide. Classic cron (Debian `cron`) (2026-10-29) · Vercel Cron Jobs (2026-10-29) · Vercel Cron Jobs (2026-10-29) · Solid Queue recurring tasks (2026-10-29) · Solid Queue recurring tasks (2026-10-29) · GoodJob cron (2026-10-29) · GoodJob cron (2026-10-29) · pg-boss `schedule()` (2026-10-29) · Graphile Worker crontab (2026-10-29)

What a local-time schedule did in our test

We ran the same parser Canner uses (cron-parser 5.6.1) with tz: "America/Toronto", to see what a local schedule would do across the next two changes. 30 2 * * * on March 14, 2027, when 02:30 doesn’t exist, fired at 07:30 UTC: 03:30 EDT, an hour late. 30 1 * * * on November 1, 2026, when 01:30 happens twice, fired once, at 05:30 UTC (the first 01:30, still EDT). The day after each change it was back on 02:30 and 01:30.

Another library can answer differently, and Debian’s cron runs the March job “soon after the change” instead. That is why Canner pins UTC: the expression you save fires at the same instant on every server, and the only thing to reason about is the offset.

Keep 9 a.m. local time all year

If the time of day matters to people, schedule both candidate hours and let the handler keep the one that is 9 a.m. where your users are. 0 13,14 * * * calls the endpoint at 13:00 and 14:00 UTC. In summer 13:00 UTC is 09:00 in Montréal, in winter 14:00 UTC is. The other call returns early with a 2xx, so it counts as a success in the run history.

The handler below also checks CRON_SECRET and uses X-Canner-Run-Id, which stays the same across retries of one run, to avoid doing the work twice.

// app/api/cron/morning-digest/route.ts (Next.js; any framework works)
// Canner job: path /api/cron/morning-digest, schedule 0 13,14 * * *
export async function POST(req: Request) {
  // Fail closed: no secret configured means nobody gets in.
  const secret = process.env.CRON_SECRET;
  if (!secret || req.headers.get("authorization") !== `Bearer ${secret}`) {
    return new Response("unauthorized", { status: 401 });
  }

  // 13:00 UTC is 9 a.m. in Montréal in summer, 14:00 UTC is 9 a.m. in winter.
  // Only the call that lands at 9 a.m. local time does the work.
  const hour = new Intl.DateTimeFormat("en-CA", {
    timeZone: "America/Toronto", // Montréal uses the same zone
    hour: "numeric",
    hourCycle: "h23",
  }).formatToParts(new Date()).find((p) => p.type === "hour")?.value;
  if (Number(hour) !== 9) return new Response("skipped: not 9 a.m. local");

  // Retries of one run share X-Canner-Run-Id: do the work once per run.
  const runId = req.headers.get("x-canner-run-id") ?? "";
  if (await alreadyDone(runId)) return new Response("already done");
  await sendMorningDigest();
  await markDone(runId); // e.g. INSERT INTO cron_runs (run_id) VALUES ($1)
  return new Response("ok");
}

Missed runs, retries and overlaps on Canner

Since delivery is best effort, write jobs that catch up instead of jobs that assume the previous run happened. “Sync every order updated since the last successful sync” survives a missed run. “Sync the orders from the last hour” loses an hour.

  • When it fires. Canner checks for due jobs once a minute and calls them one after another, so a run starts within about a minute of its scheduled time, sometimes a few seconds later when other jobs are due in the same minute.
  • Missed occurrences aren’t replayed. If Canner’s scheduler was down across several occurrences, the job runs once when it’s back, then the next run is worked out from the current time. A job every 5 minutes that missed six occurrences gets one call, not six.
  • Retries. No answer at all (connection refused or reset) or a 502, 503 or 504 is retried after 30 seconds, then two minutes after that, with the same run id and X-Canner-Attempt set to 2 or 3. A timeout, a 4xx or a 500 isn’t retried, and neither is a manual run.
  • Ten seconds. Canner waits 10 seconds for an answer, then records the run as Webhook timed out after 10s. A timeout isn’t retried because the work may have run. Anything longer belongs in a background job: enqueue it and return right away.
  • Overlaps. Canner’s own calls last 10 seconds at most, so overlapping runs mostly come from work your handler hands off to a queue and that is still going when the next run starts. Take a lock in that work (a Postgres advisory lock is enough), and expect a retry to arrive while a slow first attempt’s side effects are still landing.
  • Sleeping apps. A Starter project with no visitors for 3 hours sleeps, and a job’s call wakes it. The start-up counts toward the 10 seconds, so an app that boots slowly can record a timeout on the first call after a sleep.

Why didn’t my cron job run?

Open the job: each run is marked Succeeded, Failed, Timeout or Running, with the HTTP status and the start of the response body. Match what you see:

You seeUsually meansFix
No run at the time you expectedThe expression is read in UTC, or the job is pausedCheck the next run time on the job and convert it to local time
Failed, 405The route only accepts GET. Canner sends a POST with a {} JSON body (Vercel sends a GET)Accept POST. In Next.js, export { GET as POST } if you’re moving from Vercel
Failed, 401 or 403The secret your handler checks isn’t the one Canner sendsSet CRON_SECRET as a project variable; Canner sends Authorization: Bearer <CRON_SECRET> when the job sets no Authorization header
Failed, Not sent: the … header uses ${NAME}, which isn't set for productionA header reads a variable that isn’t set for productionAdd the variable with scope Production, All or Runtime only
Failed, 301 or 308 with “Canner doesn't follow redirects”http to https, www to apex, or a trailing slashPoint the job at the final URL, or use a path in the project
Failed, No live preview for branch …The job targets a preview that was closedPoint it at production, or pause it
TimeoutThe handler took more than 10 seconds, or a sleeping app took long to startEnqueue the work and return a 2xx at once
Failed, 502/503 on all 3 attemptsThe app was crashing or restartingRead the app’s logs around that time

Failure emails

When a job has failed every run since its last success, for at least three runs and six hours, your organization’s admins get an email listing the failing jobs. It goes out at most once a week per organization, so a single bad run or a short outage doesn’t reach anyone’s inbox. Scheduled jobs are on every plan with no cap on the number of jobs; plans differ by execution priority (pricing). More deploy guides are in hosting by framework.

Questions

What timezone do Canner cron jobs use?

UTC, always. 0 13 * * * runs at 13:00 UTC, which is 09:00 in Montréal in summer and 08:00 in winter. The job form shows the next run time so you can check it.

Does daylight saving time skip or double a cron job?

In a UTC schedule, no: UTC has no clock changes. Schedulers that read cron in local time differ. Debian’s cron runs a job from the skipped hour soon after the change and doesn’t re-run jobs in the repeated hour.

What happens to runs missed while the scheduler was down?

On Canner, an overdue job runs once when the scheduler is back, then follows its schedule from the current time. Missed occurrences aren’t replayed one by one, so write jobs that catch up on everything since their last success.

Are failed cron calls retried?

Twice, when there was no answer or the answer was a 502, 503 or 504: after 30 seconds, then two minutes later, with the same X-Canner-Run-Id. Timeouts, 4xx and 500 responses aren’t retried.

How long can a cron handler run?

Canner waits 10 seconds for a response. Longer work should go on a job queue: the handler enqueues it and returns a 2xx immediately.

Cron that calls your own app.

A path, a UTC schedule and a secret from your variables. Canner keeps the run history and emails your admins when a job keeps failing.