Claude Scheduled Jobs Show Why Registration and Heartbeats Are Separate
An investigation into scheduled agents in the Claude desktop app found missing registrations, misleading status logs, account-dependent scheduler state and health checks that could fail silently.

Key takeaways
Saving an agent prompt in a task folder did not register it with the scheduler; registration required create_scheduled_task.
list_scheduled_tasks showed schedule and enabled-state information, but registry state did not prove that a job had run.
A single 48-hour heartbeat rule produced false positives for weekly work and could not cover jobs that emitted no heartbeats.
The revised check uses cadence-specific thresholds, UTC-normalized timestamps and an explicit independent-monitoring limitation.
A scheduled AI job can have its prompt on disk, appear complete in a setup log and still never run. An investigation of scheduled agents in the Claude desktop app found that task files and scheduler state were separate systems, while later monitoring problems made it difficult to tell which jobs were actually healthy.
Each task was represented by a folder containing SKILL.md, the prompt used when the job fires. But placing those folders in the scheduler directory did not create scheduler entries. Registration required a call to create_scheduled_task; list_scheduled_tasks then showed what the scheduler knew, including the cron expression and whether the task was enabled.
The setup process initially marked registration complete because the prompt files were in the expected location. The author corrected this by registering every job explicitly, checking the returned schedule and confirming enabled: true. The process now records the next run time rather than treating “registered” as sufficient evidence.
Registry state was not proof of execution
Later observations complicated the picture. Two months after registration, the operations jobs appeared in the registry with their schedules intact but with enabled: false. The tasks subsequently disappeared from the listing and later returned. The content-drafting task was enabled and had run recently, while the daily health check, weekly review and competitor watch showed older last-run information and remained disabled.
The author switches between Claude accounts when usage limits are reached and suspects that task registry state may not carry between accounts. That explanation was not confirmed. The available run history for the account under inspection contained only two runs, so the registry was treated as one view of scheduler state rather than a complete execution record.
Heartbeats exposed a second failure mode
The daily health check and weekly review appended heartbeat records to a file. The competitor-watch reports also appeared in the reports directory, but that job and the content-drafting job did not write heartbeats. As a result, the monitoring system could not use the heartbeat file to detect that either of them had stopped.
The first health rule treated any missing heartbeat older than 48 hours as a problem. That was unsuitable for weekly work: the weekly review checked its own previous heartbeat before writing a new one, making itself appear roughly 168 hours late. Other alerts were also false positives because a weekly interval can exceed 48 hours. One genuine gap was recorded as well: the daily job stopped, and the weekly review missed its latest Monday run.
The revised thresholds are 48 hours for devreview-daily-health, 192 hours for devreview-weekly-biz-review and devreview-competitor-watch, and 120 hours for devreview-content-draft. The check now normalizes mixed timestamp formats to UTC and reports each job’s latest timestamp, elapsed time and applied threshold.
Monitoring still has a dependency problem
The weekly review was itself responsible for producing the alert. When it stopped, it produced no report, heartbeat or alert, leaving the monitoring mechanism without an independent signal. The investigation therefore distinguishes three checks: a prompt exists, the scheduler has a registered task, and the task has produced recent evidence of execution.
Why it matters for your role
Pick the building you work in.

For software engineers
Treat scheduled-agent configuration, registration and execution evidence as separate states. File presence and a successful setup log are not enough; verification should include scheduler output and recent run evidence.

For AI and ML practitioners
AI agent operations need monitoring designed around each job’s cadence and an audit trail that distinguishes disabled, missing, stale and recently active tasks. Account changes can also make the visible registry incomplete or ambiguous.

For QA engineers
Health checks need tests for weekly intervals, mixed timestamp offsets, jobs with no prior heartbeat and the monitor itself stopping. A monitor that runs inside the job it supervises cannot provide independent failure detection.
Based on reporting by DEV Community (source article).
Written with AI assistance and reviewed under our editorial standards. Spotted an error? Tell the desk.








Comments