cheminfo / database-aggregator

Collect and aggregate data in MongoDB
MIT License
5 stars 3 forks source link

handle the pm2 process restart #27

Closed dcyou closed 6 years ago

dcyou commented 8 years ago

we can imagine a solution based on : http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#graceful-reload

stropitek commented 8 years ago

Before exiting, cancel all schedulers and wait for the current queue to end. pm2 allows to specify a timeout after which the process will be reloaded anyway

stropitek commented 6 years ago

not using pm2 anymore, but we should definitely know what happens with child processes when stopping the parent process

stropitek commented 6 years ago

superseded by #52