Repository navigation
Routines: a suggestion run held by the AI's sign-in never skips its job or pattern - #2498
Merged
Merged
Conversation
…ob or pattern While Claude Code was signed out, background turns are held (signed_out_hold). A sorting run for a pattern or an old OpenClaw job then waited 12 hours, failed as not_started, and after two such failures the job or pattern was marked skipped for good, though the run never got its turn. A new pattern started the next day and went the same way, and ops heard "routines: 2 failed" every day. - routines.sort_again counts only runs that got their turn (not not_started) toward the skip. - routines_sort_step starts and retries no sorting run while the sign-in holds background work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0131jDkEg5VQnWqibgKRkRiz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While Claude Code is signed out, background turns are held (
signed_out_hold). A sorting run for a pattern or an old OpenClaw job then waited 12 hours (WAIT_AT_MOST), failed asnot_started, and after two of thosesort_againmarked the job or patternskippedfor good, though no model ever looked at it. The next day a new pattern started and went the same way, and the cloud's daily check reported "routines: 2 failed, none finished well in 24 h" every day on top of the sign-in alert. Seen on a hosted Machine whose Claude sign-in had expired.routines.sort_again: only runs that got their turn count toward the skip;not_starteddoesn't.routines_sort_step: no sorting run starts or retries while the sign-in holds background work (the same hold reviews use).Proof:
test_a_sorting_run_that_didnt_work_runs_once_more_then_the_job_is_skippedunchanged). Differs only fornot_started: tested bytest_a_sorting_run_that_never_got_its_turn_never_skips_the_job(4 held runs, row stays sorting, then sorts normally once a turn goes).signed_out_hold, the one background_pause and reviews use; no own check.recipe_failedcounts only recipes that ran;profile.py's not_started has no lasting effect. Nothing else changed.Docs: none (internal scheduling; help describes suggestions, not retry counts).
What's new: none (a fix to background suggestions, nothing new to tell).
Lasting knowledge: failed runs are kept as before; a pattern or job is no longer discarded for a reason that says nothing about it.
🤖 Generated with Claude Code
https://claude.ai/code/session_0131jDkEg5VQnWqibgKRkRiz