claude-code - 💡(How to fix) Fix Remote trigger cron schedule never fires — manual runs work fine [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#47933Fetched 2026-04-15 06:38:12
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Remote triggers created via the RemoteTrigger API (and confirmed in the web UI at claude.ai/code/scheduled) never fire on their cron schedule. Manual runs via action: "run" work perfectly every time — the agent executes, completes its workflow, and produces the expected output. But the same trigger sitting on a cron expression never fires automatically.

Root Cause

Remote triggers created via the RemoteTrigger API (and confirmed in the web UI at claude.ai/code/scheduled) never fire on their cron schedule. Manual runs via action: "run" work perfectly every time — the agent executes, completes its workflow, and produces the expected output. But the same trigger sitting on a cron expression never fires automatically.

RAW_BUFFERClick to expand / collapse

Summary

Remote triggers created via the RemoteTrigger API (and confirmed in the web UI at claude.ai/code/scheduled) never fire on their cron schedule. Manual runs via action: "run" work perfectly every time — the agent executes, completes its workflow, and produces the expected output. But the same trigger sitting on a cron expression never fires automatically.

Reproduction

  1. Create a remote trigger with a cron expression (e.g., 0 13 * * * for daily at 1 PM UTC)
  2. Confirm trigger shows enabled: true in both the API response and the web UI
  3. Confirm next_run_at is set to the expected time
  4. Wait for the scheduled time to pass
  5. Result: No run is initiated. No output. No evidence of execution.
  6. Manually trigger via action: "run" → works immediately, every time.

What I've tried

  • Multiple triggers: Created 3+ separate triggers over 2 days. None fired on schedule.
  • Different cron expressions: Tried 0 14 * * *, 52 14 * * *, 3 15 * * *, 0 13 * * *. None fired.
  • Recreated from scratch: Deleted old triggers via the web UI and created brand new ones. Fresh triggers also don't fire on cron.
  • Verified enabled: true: Confirmed via both action: "get" and the web UI.
  • Verified next_run_at: The API returns a valid next_run_at timestamp. That time passes. Nothing happens. The next_run_at then advances to the next occurrence.
  • Different timing windows: Tested cron times minutes away, hours away, and next-day. None fired.
  • Manual trigger immediately after: Running action: "run" on the same trigger works instantly, confirming the trigger config, environment, and prompt are all valid.

Environment

  • Environment: claude-code-default (env_01VmLDyWMQuvDfGWxTeBGBnD, anthropic_cloud)
  • Model: claude-sonnet-4-6
  • Tools: Bash, Read, Write, Edit, Glob, Grep, WebSearch, WebFetch
  • No MCP connections
  • Trigger created via CLI RemoteTrigger tool

Expected behavior

Trigger fires automatically at the time specified by the cron expression, same as a manual action: "run".

Actual behavior

Trigger never fires on schedule. Only manual runs work.

Additional context

  • The next_run_at field in the API response does advance past the scheduled time, suggesting the scheduler is aware of the trigger but not executing it.
  • This has been consistent across 48+ hours of testing with multiple triggers and cron expressions.
  • The web UI at claude.ai/code/scheduled shows the trigger as enabled with the correct schedule.

extent analysis

TL;DR

The issue may be related to the scheduler's inability to execute the trigger at the specified cron time, despite the next_run_at field advancing correctly, and a workaround could involve investigating the scheduler's configuration or implementation.

Guidance

  • Verify that the scheduler is properly configured to execute triggers at the specified cron times, and check for any potential issues with time zones or clock synchronization.
  • Investigate the scheduler's logs or monitoring tools to see if there are any error messages or indications of why the triggers are not being executed at the scheduled times.
  • Consider testing the triggers with a more frequent cron expression (e.g., every minute) to see if the issue is specific to the daily schedule or if it's a more general problem with the scheduler.
  • Check the documentation for the RemoteTrigger API and the web UI to ensure that the triggers are being created and configured correctly, and that there are no known issues or limitations with the scheduler.

Example

No code snippet is provided as the issue seems to be related to the scheduler's configuration or implementation rather than a specific code problem.

Notes

The issue may be specific to the claude-code-default environment or the claude-sonnet-4-6 model, and it's possible that the problem is not with the triggers themselves but with the scheduler's ability to execute them at the specified times.

Recommendation

Apply workaround: Investigate the scheduler's configuration and implementation to identify the root cause of the issue, as the problem seems to be related to the scheduler's ability to execute the triggers at the specified cron times.

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

Trigger fires automatically at the time specified by the cron expression, same as a manual action: "run".

Still need to ship something?

×6

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

Back to top recommendations

TRENDING