Deleting cancelled jobs#1744
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
📝 WalkthroughWalkthroughThe changes introduce a 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e1684705-a785-44b5-aa92-f60f41018950
📒 Files selected for processing (3)
docker/structure.sqllib/job/base.pymigrations/2026_06_24_jobs_delete_cancelled.sql
This PR forces deletion of cancelled jobs also.
To ensure no status is forgotten an enum is introduced into the database
This change makes job cleanup include cancelled jobs and tightens job state handling with a database enum.
Job.clear_old_jobsnow deletesCANCELLEDjobs along with the existing oldFAILEDandFINISHEDjobs, while preserving the other cleanup rules.job_stateenum, withjobs.statenowNOT NULLand defaulting toWAITING.