From 5db3c268d4177f06b871a80654cca7bf0380fa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20Moskvil=20Lyng=C3=A5s?= Date: Thu, 28 Oct 2021 14:47:31 +0200 Subject: [PATCH] process must be exited for docker to finish --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5896f46..201c98e 100644 --- a/index.js +++ b/index.js @@ -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) })