Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.61k stars 2.62k forks source link

Ressurected processes do not respect restarting policy #3258

Open Spown opened 7 years ago

Spown commented 7 years ago

PM2 2.7.2 Debian Jessie

Sometimes resurrected on startup saved processes, that fail, just keep on restarting forever (instead of erroring and halting). The max_restarts property exists in the process.json ecosystem and is transferred into the /root/.pm2/dump.pm2 file. but after startup it seemingly gets ignored. The behavior persists if I don't change anything and just keep restarting. However unstartuping, resaving, startuping anew generally helps for a time. I can't see any pattern. It just happens randomly.

vmarchaud commented 7 years ago

Maybe linked to https://github.com/Unitech/pm2/issues/2654 : options aren't correctly re-set after resurrect

DSheffield commented 6 years ago

Also an issue for me on Centos 6 w/ PM2 2.8.0, except not sometimes - always. Is this going to be addressed any time soon?

Spown commented 6 years ago

v3.0.4, still there...