move setting if job is running to finally statement (#100)

This commit is contained in:
Salah Al Saleh
2022-07-27 13:01:45 -07:00
committed by GitHub
parent 299ca1a263
commit ccfdafc048

View File

@@ -47,9 +47,9 @@ async function main(argv): Promise<any> {
await reapExpiredImages();
} catch(err) {
console.log("failed to reap expired images:", err);
} finally {
jobRunning = false;
}
jobRunning = false;
},
start: true,
});