From ccfdafc048ad6992a802fdc24223e9cd3a95745b Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 27 Jul 2022 13:01:45 -0700 Subject: [PATCH] move setting if job is running to finally statement (#100) --- hooks/src/commands/reap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/src/commands/reap.ts b/hooks/src/commands/reap.ts index 67d77d7..70ae1c4 100644 --- a/hooks/src/commands/reap.ts +++ b/hooks/src/commands/reap.ts @@ -47,9 +47,9 @@ async function main(argv): Promise { await reapExpiredImages(); } catch(err) { console.log("failed to reap expired images:", err); + } finally { + jobRunning = false; } - - jobRunning = false; }, start: true, });