Repository navigation
fix(cron): stop retrying permanent command failures as provider overloads - #126763
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 21, 2026
…oads (openclaw#126763) * fix(cron): avoid retrying incidental overload status codes * fix(cron): preserve authoritative command failure classification
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.
What Problem This Solves
Fixes an issue where scheduled command jobs were retried as temporary provider failures when their permanent errors happened to contain numbers or retry-related words, while genuine provider overloads still need their existing bounded retries.
Why This Change Was Made
Cron command execution now records the existing authoritative permanent-or-timeout classification at its producer, and the detached execution owner preserves that fact through its normal result projection. Unclassified overload text is recognized only when
529is actually an HTTP/provider status or documented overload response, matching the existing rate-limit and server-error classifiers without changing shared provider classification.The incidental overload match dates to
ebfb834dcdad5f09675d76af05fb80d3ecfd9fde(#85344). Avoiding retries solely by adding another scheduler guard would retain the producer ownership gap and still misclassify sibling execution paths; carrying the existing closed classification through the canonical outcome is the root-cause repair.User Impact
One-shot automations with permanent command failures stop immediately instead of running again. Recurring automations return to their normal schedule instead of entering unnecessary overload backoff. Real command timeouts and genuine HTTP/provider overload failures continue to retry as before, including existing provider-specific classifications.
Evidence
529prose and paths incorrectly retry, command exits and missing executables have no producer-owned permanent classification, and detached command results discard existing classification.oxfmt --check.0a5785bdd27e8a9fb1d0478ee77ac18c481d2a28.