mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-07-10 22:59:19 +00:00
move setting if job is running to finally statement (#100)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user