Closed deluxghost closed 2 years ago
It shouldn't be too much trouble ti fix. Forcing a custom handler with e.g
process.once('SIGTERM' , () => stop routine)
When I'll have some spare time I'll try to fix it.
I'm using docker deployment, the
docker stop
takes longer than 10 seconds to be doneI think
node dist/main.js
ignores SIGTERM, so docker must wait until the default 10s timeout and kill the container
I pushed a possible fix. Now docker stops the container immediately as suggested.
I'm using docker deployment, the
docker stop
takes longer than 10 seconds to be doneI think
node dist/main.js
ignores SIGTERM, so docker must wait until the default 10s timeout and kill the container