Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
process must be exited for docker to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
runely committed Oct 28, 2021
1 parent 8d932d3 commit 5db3c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ getNextJobFromQueue()
.then(deleteJobFromQueue)
.then(data => {
logger('info', ['index', 'finished'])
process.exitCode = 0
process.exit(0)
}).catch(err => {
logger('error', ['index', 'error', err])
process.exitCode = 1
process.exit(1)
})

0 comments on commit 5db3c26

Please sign in to comment.