From 40e23b05f7846ea6832ff31f82182dc4d4c6c4df Mon Sep 17 00:00:00 2001 From: Maksym Brashchenko <39818683+j2h4u@users.noreply.github.com> Date: Fri, 6 Feb 2026 04:46:59 +0500 Subject: [PATCH] fix(cron): re-arm timer in finally to survive transient errors (#9948) --- src/cron/service/timer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cron/service/timer.ts b/src/cron/service/timer.ts index b85ee564e..8af4f9bc3 100644 --- a/src/cron/service/timer.ts +++ b/src/cron/service/timer.ts @@ -48,10 +48,11 @@ export async function onTimer(state: CronServiceState) { await runDueJobs(state); recomputeNextRuns(state); await persist(state); - armTimer(state); }); } finally { state.running = false; + // Always re-arm so transient errors (e.g. ENOSPC) don't kill the scheduler. + armTimer(state); } }