claude-code - 💡(How to fix) Fix Scheduled routine/trigger fails to fire at cron time

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Bug

A scheduled routine (remote trigger) with a valid cron expression did not fire at its scheduled time.

Details

  • Trigger ID: trig_01N21vj1CQoAgQnYVe423njx
  • Cron expression: 0 15 * * 1-5 (3:00 PM UTC / 11:00 AM EDT, weekdays)
  • Routine name: "Daily Briefing"
  • enabled: true
  • next_run_at: 2026-04-20T15:03:38.546279523Z
  • Observed at: ~11:07 AM EDT (15:07 UTC) on Monday, April 20, 2026 — routine had not fired and no in-progress run was visible on the status page.
  • Manual /run worked fine — the routine executed successfully when triggered manually via the API.

Expected behavior

The routine should have automatically fired at or shortly after 2026-04-20T15:03:38Z.

Actual behavior

No run was initiated. The status page showed no in-progress or recent run. A manual trigger via the API worked immediately.

Notes

  • The routine was created on 2026-04-17T17:36:51Z (Thursday). This was its first scheduled Monday run.
  • The next_run_at timestamp has an unusual :03:38 offset rather than :00:00, which may indicate the scheduler is calculating next run from creation time rather than snapping to the cron expression. This could be related to the missed trigger.
  • Platform: Claude Code routines (claude.ai/code/routines)

extent analysis

TL;DR

The scheduled routine may not have fired due to an issue with the scheduler's calculation of the next run time, potentially related to the unusual offset in the next_run_at timestamp.

Guidance

  • Verify that the cron expression 0 15 * * 1-5 is correctly interpreted by the scheduler, ensuring it aligns with the expected firing time of 3:00 PM UTC (11:00 AM EDT) on weekdays.
  • Investigate the scheduler's behavior regarding the calculation of next_run_at timestamps, particularly how it handles offsets and whether it correctly snaps to the cron expression schedule.
  • Check if there are any platform-specific settings or configurations in Claude Code routines that could affect the scheduling behavior, such as timezone settings or scheduling precision.
  • Consider testing the routine with a different cron expression or at a different time to see if the issue persists, which could help isolate the problem.

Example

No specific code snippet can be provided without more details on the scheduler's implementation, but ensuring the cron expression is correctly formatted and understood by the scheduler is crucial.

Notes

The provided information suggests a potential issue with how the scheduler calculates the next run time, possibly due to the routine's creation time or an incorrect interpretation of the cron expression. Further investigation into the scheduler's logic and platform settings is necessary to resolve the issue.

Recommendation

Apply a workaround by adjusting the cron expression or the routine's configuration to better align with the scheduler's expected behavior, as the root cause seems related to the scheduling mechanism rather than a straightforward fix.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The routine should have automatically fired at or shortly after 2026-04-20T15:03:38Z.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Scheduled routine/trigger fails to fire at cron time