Skip to content

Commit

Permalink
Merge pull request #20 from odigos-io/node-nice-exit
Browse files Browse the repository at this point in the history
fix(coupon): graceful exit of nodejs service
  • Loading branch information
blumamir authored Jun 18, 2024
2 parents 6eff2dc + deb6eba commit 5e28eb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coupon/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const server = app.listen(PORT, () => {
process.on('SIGTERM', () => {
console.log('Received SIGTERM. Shutting down server.');
server.close(() => {
console.log('Server shut down.');
process.exit(0);
console.log('Server closed.');
});
});

0 comments on commit 5e28eb1

Please sign in to comment.