Skip to content

Commit

Permalink
feat: opt-in exit on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
just-paja committed Jun 8, 2023
1 parent 48cceec commit 1a1e8a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/djorm-cloud-jobs/subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ function createProcessWrapper (fn) {
error(e)
}
}
process.exit(255)
if (getSettings('cloudJobs.exitOnFailure')) {
process.exit(255)
}
}
} finally {
// Do not shutdown in test environment
Expand Down

0 comments on commit 1a1e8a4

Please sign in to comment.