Skip to content

Commit

Permalink
wipppp
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 13, 2024
1 parent b00033d commit 3924bb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CountItems/CountMaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CountMaster {
this.log.info('got buckets infos', {
bucketCount: bucketList.bucketCount,
});
// monitoring.bucketCount.set(bucketList.bucketCount);
monitoring.bucketCount.set(bucketList.bucketCount);
this.manager.addWork(bucketList);
return next();
}),
Expand Down
6 changes: 5 additions & 1 deletion CountItems/masterProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ const countMaster = new CountMaster({

metricServer.onRequest((req, res) => monitoring.metricsHandler(
countMaster,
() => process.exit(1),
() => {
// additional operations
console.log('The stop method has been fully executed.');
process.exit(1);
},
req,
res,
));
Expand Down

0 comments on commit 3924bb9

Please sign in to comment.