Skip to content

Commit

Permalink
S3UTILS-164: fix exit when scraping occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 21, 2024
1 parent 7b02163 commit 0afd9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CountItems/masterProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0afd9ad

Please sign in to comment.