Skip to content

fix(prover-client): don't mark in-progress epoch N jobs as stale when epoch N+1 starts#22508

Merged
PhilWindle merged 2 commits intomerge-train/spartanfrom
alexg/a-720-audit-40-first-job-of-epoch-n1-marks-all-epoch-n-jobs-as-stale
Apr 21, 2026
Merged

fix(prover-client): don't mark in-progress epoch N jobs as stale when epoch N+1 starts#22508
PhilWindle merged 2 commits intomerge-train/spartanfrom
alexg/a-720-audit-40-first-job-of-epoch-n1-marks-all-epoch-n-jobs-as-stale

Conversation

@alexghr
Copy link
Copy Markdown
Contributor

@alexghr alexghr commented Apr 13, 2026

Summary

  • Fixes A-720: cleanupStaleJobs() was removing all stale jobs including those still being actively proved. Added !this.inProgress.has(id) guard so in-progress jobs are left alone and handled correctly by reEnqueueExpiredJobs() when they time out.

Test plan

  • Existing proving broker tests cover the stale cleanup and timeout paths
  • Verify that in-progress jobs from epoch N survive into epoch N+1 until they either complete or time out

🤖 Generated with Claude Code

alexghr and others added 2 commits April 13, 2026 13:26
… epoch N+1 starts (A-720)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PhilWindle PhilWindle merged commit 24d8136 into merge-train/spartan Apr 21, 2026
12 checks passed
@PhilWindle PhilWindle deleted the alexg/a-720-audit-40-first-job-of-epoch-n1-marks-all-epoch-n-jobs-as-stale branch April 21, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants