hermes - 💡(How to fix) Fix [BUG] Scheduler prematurely marks repeating cron jobs as 'completed' after first successful run [1 pull requests]

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…

A bug has been identified in the cron scheduler where jobs configured with a repeat count (e.g., repeat: 3 times) are being incorrectly transitioned to a completed state after the very first successful execution. This prevents subsequent scheduled runs from triggering.

Root Cause

A bug has been identified in the cron scheduler where jobs configured with a repeat count (e.g., repeat: 3 times) are being incorrectly transitioned to a completed state after the very first successful execution. This prevents subsequent scheduled runs from triggering.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Description

A bug has been identified in the cron scheduler where jobs configured with a repeat count (e.g., repeat: 3 times) are being incorrectly transitioned to a completed state after the very first successful execution. This prevents subsequent scheduled runs from triggering.

Steps to Reproduce

  1. Create a cron job with a repeat count greater than 1 (e.g., repeat: 3 times) and a duration (e.g., schedule: 2m).
  2. Wait for the first execution to complete successfully.
  3. Inspect the job status.

Observed Behavior

The job status is marked as state: completed and repeat: 1/3 immediately after the first run. The scheduler stops processing the job, and the remaining scheduled runs do not occur.

Expected Behavior

The job should remain in an active state, and the repeat counter should increment (e.g., 2/3, 3/3) until all requested iterations have been performed.

Technical Analysis (RCA)

Internal inspection of state.db suggests the state machine transition logic in the scheduler is incorrectly treating the completion of a single task instance as the completion of the entire job lifecycle for repeating tasks.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING