Add a watchdog that repairs missed schedules and stalled jobs
Every daily and weekly source missed two days in November 2026: Procrastinate skips a periodic slot that is more than ten minutes overdue, and jobs of killed workers stayed "doing" forever. Every ten minutes the watchdog fails jobs of dead workers, closes abandoned run records and defers any scheduled task whose last slot passed without a run. Also: EP vote references of joint motions and Council documents, and the loader now refreshes a vote's reference and stage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a59d475e6b
commit
b7b7f2f648
5 files changed
+77
-3
No files matched your search
@@ -254,6 +254,7 @@ class Loader:
|
||||
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
|
||||
ON CONFLICT (event_key) DO UPDATE SET result = EXCLUDED.result, raw_text = EXCLUDED.raw_text,
|
||||
roll_call = EXCLUDED.roll_call, item_title = EXCLUDED.item_title, part_vote = EXCLUDED.part_vote,
|
||||
item_ref = EXCLUDED.item_ref, stage = EXCLUDED.stage,
|
||||
protocol_url = COALESCE(EXCLUDED.protocol_url, vote_event.protocol_url)
|
||||
RETURNING id""",
|
||||
(rec.key, chamber, rec.item_ref, rec.title, rec.stage, rec.voted_on, rec.result, rec.roll_call, rec.url,
|
||||
|
||||
Reference in new issue
Block a user