Repository navigation
feat(scheduler): retry mechanism for failed scheduled executions (#271) - #332
Merged
Merged
Conversation
Add configurable automatic retry for failed scheduled executions: - New schedule fields: max_retries (0-5, default 1), retry_delay_seconds (30-600, default 60) - New execution fields: attempt_number, retry_of_execution_id, retry_scheduled_at - New status: pending_retry (retry scheduled but not yet fired) - Rate-limited (429) failures use 2x delay, capped at 300s - Retries persist to DB and survive scheduler restart - Existing schedules migrated with max_retries=0 (opt-in) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.
Summary
retry_of_execution_id)Changes
Schema (4 new columns across 2 tables):
agent_schedules:max_retries,retry_delay_secondsschedule_executions:attempt_number,retry_of_execution_id,retry_scheduled_atBackend: Migration, db operations, Pydantic models
Scheduler: Retry logic (
_maybe_schedule_retry,_execute_retry,_recover_pending_retries)MCP:
create_agent_scheduleandupdate_agent_scheduleaccept retry paramsFrontend: Retry config in schedule form,
pending_retrystatus stylingTest Plan
Closes #271
Generated with Claude Code