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

not raising error events when a program returns invalid codes #405

Open
plockaby opened this issue Mar 24, 2014 · 1 comment
Open

not raising error events when a program returns invalid codes #405

plockaby opened this issue Mar 24, 2014 · 1 comment
Labels

Comments

@plockaby
Copy link
Contributor

Say I have a program configured like this:

[program:myprog]
command = /usr/local/bin/myprog
process_name = %(program_name)s
numprocs = 1
autostart = false
autorestart = false
stopsignal = INT
startsecs = 0

This program is one that is supposed to run on demand and finishes in less than a second so I cannot increase startsecs. Let's say this program is failing to start and returns an exit code of 255. I see this in the supervisor log:

2014-03-20 12:05:12,836 INFO exited: myprog (exit status 255; not expected)

Even though the program dies in an unexpected way, supervisor tells my event listeners that the program went into an EXITED state rather than a FATAL state. If I were to change the configuration only by setting "autorestart = unexpected" then supervisor will correctly determine that the program died in an unexpected way and does try to restart it. But the program will never go into a FAILED state and supervisor will simply try to restart it forever, even in the face of a "startretries" setting. That's the bug: supervisor fails to put a program into a failed state under this configuration even when it recognizes that the program is failing.

This is with supervisor tag 3.0.

@geekodour
Copy link

is this resolved?

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

No branches or pull requests

3 participants