feat(jobs): implement auto-retry on job failure #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ref: docs/WORKERS.md §4
The DB schema supports
retry_countandmax_retrieson jobs, and job definitions specifymax_retries, but no auto-retry logic exists. When a job fails, it stays failed regardless of retry budget.Requirements
failed(via runnerFailJobor timeout sweeper), check ifretry_count < max_retriespendingjob with the same definition, item, and scope, incrementingretry_countjob.createdevent for the retry jobTimeoutExpiredJobs) should also trigger retries for timed-out jobsAcceptance Criteria