Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop restarting on crashing code #36

Closed
mikl opened this issue Dec 5, 2011 · 1 comment
Closed

Stop restarting on crashing code #36

mikl opened this issue Dec 5, 2011 · 1 comment

Comments

@mikl
Copy link

mikl commented Dec 5, 2011

I have been using Supervisor for development, and it irks me that if I make a syntax error or something else that will make Node crash immediately when launched, Supervisor will just continue to restart the process, several times a second.

Wouldn't it be a safe assumption that a process that dies within its first second of runtime should not be restarted?

@iangreenleaf
Copy link
Collaborator

I agree, the instant infinite crash loop is a bit annoying. However, I always found it equally annoying when it bailed and I had to tab back into that terminal to restart supervisor just because I made a syntax error.

I've been thinking the best solution might be an exponential backoff, where the first crash within a given time period gets no delay, but subsequent crashes get longer and longer delays, up to 5s or something reasonable like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants