kshitij
baa1cfb89d
perf(cron): skip run_claim clear for recurring jobs on dispatch failure
...
/simplify-code finding: only one-shots carry a run_claim, yet the three
dispatch-failure paths called clear_run_claim unconditionally — each call
acquires _jobs_lock (blocking cross-process flock) and does a full
load_jobs read just to return False for any non-'once' job. The trigger
is exactly a failure storm (interpreter shutdown, EMFILE with N due
jobs): N serialized flock+file reads at the moment the process can least
afford I/O, all guaranteed no-ops for the majority job kind.
Gate at the call site on schedule.kind == 'once'; new mutation-checked
test proves recurring dispatch failures skip the claim I/O entirely.
9/9 tests green; ruff clean.
2026-08-17 17:31:26 +05:30
..
2026-08-16 22:07:00 -07:00
2026-08-08 04:19:49 -07:00
2026-08-16 22:10:02 -07:00
2026-08-12 13:30:01 -05:00
2026-08-17 03:03:47 -07:00
2026-08-09 22:09:49 -04:00
2026-08-17 17:31:26 +05:30
2026-08-15 13:35:32 -07:00
2026-08-17 17:13:27 +05:30
2026-08-17 02:56:17 -07:00
2026-08-16 06:38:38 -07:00
2026-08-13 23:43:15 +05:30
2026-08-08 18:11:02 -07:00
2026-08-17 02:56:17 -07:00
2026-08-13 11:11:53 -07:00
2026-08-17 03:25:07 -07:00
2026-08-13 02:38:28 -07:00
2026-08-12 19:13:32 -07:00
2026-08-13 22:09:44 -07:00
2026-08-15 23:37:22 -07:00
2026-08-08 12:33:19 -07:00
2026-08-17 03:03:35 -07:00
2026-08-16 23:26:10 -07:00
2026-08-07 10:11:05 -07:00
2026-08-17 14:16:21 +05:30
2026-08-12 17:25:30 -05:00
2026-08-13 22:44:23 +05:30
2026-08-16 01:50:20 -07:00
2026-08-15 23:37:22 -07:00
2026-08-15 00:25:00 -07:00
2026-08-14 22:23:00 -07:00
2026-08-14 15:41:38 -05:00
2026-08-14 21:48:14 -07:00
2026-08-08 05:21:09 -07:00
2026-08-12 19:13:32 -07:00
2026-08-16 06:29:53 -07:00
2026-08-09 22:09:49 -04:00
2026-08-15 00:36:03 -07:00
2026-08-09 22:09:49 -04:00
2026-08-15 23:37:22 -07:00
2026-08-09 22:09:49 -04:00
2026-08-16 19:53:07 -07:00
2026-08-13 23:43:15 +05:30
2026-08-13 23:43:15 +05:30
2026-08-13 02:38:28 -07:00
2026-08-14 21:35:30 -07:00
2026-08-14 22:33:58 -07:00
2026-08-08 19:46:35 -07:00
2026-08-14 21:58:09 -07:00
2026-08-14 21:58:09 -07:00
2026-08-14 21:58:09 -07:00
2026-08-16 11:34:40 -07:00
2026-08-13 02:38:28 -07:00
2026-08-13 18:39:54 +00:00
2026-08-13 18:39:54 +00:00
2026-08-14 21:58:09 -07:00
2026-08-17 02:40:59 -07:00
2026-08-15 01:55:22 -07:00
2026-08-07 19:44:35 +05:30
2026-08-11 17:06:15 -05:00
2026-08-16 23:26:10 -07:00
2026-08-14 21:36:41 -07:00
2026-08-09 22:09:49 -04:00
2026-08-14 21:45:08 -07:00
2026-08-14 21:50:48 -07:00
2026-08-13 11:49:14 -07:00
2026-08-14 13:51:26 -07:00
2026-08-14 13:51:26 -07:00
2026-08-12 18:55:14 -07:00
2026-08-10 17:02:56 -07:00
2026-08-08 12:33:19 -07:00
2026-08-16 20:43:13 -07:00
2026-08-10 17:02:56 -07:00
2026-08-10 17:02:56 -07:00
2026-08-12 19:43:29 -07:00
2026-08-12 19:43:41 -07:00
2026-08-15 02:22:58 -07:00
2026-08-08 14:18:26 +05:30
2026-08-15 00:36:03 -07:00
2026-08-13 09:36:02 -07:00
2026-08-07 09:44:21 -07:00
2026-08-16 06:26:37 -07:00
2026-08-16 06:26:37 -07:00
2026-08-09 13:43:14 -07:00
2026-08-12 20:02:07 -07:00
2026-08-14 12:02:05 -04:00
2026-08-13 02:38:28 -07:00