remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development

Home Page:http://nodemon.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

born2net opened this issue · comments

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.

will open more details