remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.13k stars 1.72k forks source link

is there a way to delay before re-spawn / re-execution? otherwise CPU goes to 100% #2187

Closed born2net closed 4 months ago

born2net commented 4 months ago

using nodemon for a simple express cluster setup. however, if for some reason the express server crashes (let's say some fatal issue that needs to be resolved by a human), nodemon will continue and re-spawan express in an infinit loop causing the CPU of the server to get to 100% Is there a way to tell nodemon to wait like 1 second before re-spwaninfg again? this will prevent the CPU from going to 100%

the --delay 1000 does not do the trick :(

Thanl you for a great product.

born2net commented 4 months ago

will open more details