From 0afd9adf9b7589094c2b9e9a6b9c877b7af3d032 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Tue, 21 May 2024 12:05:58 +0200 Subject: [PATCH] S3UTILS-164: fix exit when scraping occurs --- CountItems/masterProcess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CountItems/masterProcess.js b/CountItems/masterProcess.js index db6cdb84..277ce8d0 100644 --- a/CountItems/masterProcess.js +++ b/CountItems/masterProcess.js @@ -55,7 +55,7 @@ const countMaster = new CountMaster({ const metricServer = new WebServer(8003, log).onRequest((req, res) => monitoring.metricsHandler( () => { if (waitingForPromScraping === true) { - countMaster.stop(null, () => process.exit(1)); + countMaster.stop(null, () => process.exit(0)); } }, req,