Created
January 27, 2016 17:53
-
-
Save dalyons/85148091fdeca06ac9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jonathantullett commented on Feb 9, 2015 | |
I have discovered an issue whereby starting a process via by doing | |
supervisor> start procgroup:* | |
does not honour the autorestart settings and results in supervisor trying to restart any failed processes in that group indefinitely. | |
My test-case config file: | |
[program:test] | |
command=/tmp/exit-non-zero.sh | |
autostart=false | |
autorestart=false | |
startsecs=3 | |
[group:mytest] | |
programs=test | |
/tmp/exit-non-zero.sh contains: | |
#!/bin/bash | |
sleep 1 | |
exit 1 | |
Then I run the test: | |
supervisor> start mytest:test | |
mytest:test: ERROR (abnormal termination) | |
supervisor> start mytest:* | |
At this point it keeps respawning. The logs contain: | |
2015-02-09 11:32:53,037 INFO spawned: 'test' with pid 11913 | |
2015-02-09 11:32:54,060 INFO exited: test (exit status 1; not expected) | |
2015-02-09 11:32:54,124 INFO gave up: test entered FATAL state, too many start retries too quickly | |
2015-02-09 11:32:55,135 INFO spawned: 'test' with pid 11915 | |
2015-02-09 11:32:56,151 INFO exited: test (exit status 1; not expected) | |
2015-02-09 11:32:57,153 INFO gave up: test entered FATAL state, too many start retries too quickly | |
2015-02-09 11:32:58,162 INFO spawned: 'test' with pid 11919 | |
2015-02-09 11:32:59,183 INFO exited: test (exit status 1; not expected) | |
2015-02-09 11:32:59,249 INFO gave up: test entered FATAL state, too many start retries too quickly | |
2015-02-09 11:33:00,256 INFO spawned: 'test' with pid 11921 | |
2015-02-09 11:33:01,313 INFO exited: test (exit status 1; not expected) | |
2015-02-09 11:33:02,315 INFO gave up: test entered FATAL state, too many start retries too quickly | |
and it continues. | |
I confirm this is with the latest release of supervisor (3.1.3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example base supervisord.conf
to run