telefonicaid / iotagent-manager

IoT Agent Manager to use as proxy for multiple IoTAgents with different protocols
GNU Affero General Public License v3.0
7 stars 8 forks source link

Add graceful shutdown #263

Closed jason-fox closed 2 years ago

jason-fox commented 2 years ago

When a shutdown signal is sent, we need to do graceful shutdown out of Node.js and Express to avoid side effects like finishing active requests before closing server, clean up resources, db connections etc.

see: https://stackfame.com/node-express-graceful-shutdown

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1607906757


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/iotagent-manager.js 3 9 33.33%
<!-- Total: 3 9 33.33% -->
Totals Coverage Status
Change from base Build 1452758808: -0.6%
Covered Lines: 503
Relevant Lines: 626

💛 - Coveralls
coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 1607396003

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/iotagent-manager.js 3 9 33.33%
<!-- Total: 3 9 33.33% -->
Totals Coverage Status
Change from base Build 1452758808: -0.6%
Covered Lines: 503
Relevant Lines: 626

💛 - Coveralls