8000 Avoid Supervisord to go in fatal error · symfony/symfony-docs@f836d2b · GitHub
[go: up one dir, main page]

Skip to content

Commit f836d2b

Browse files
authored
Avoid Supervisord to go in fatal error
`startsecs`: The total number of seconds which the program needs to stay running after a startup to consider the start successful (moving the process from the `STARTING` state to the `RUNNING` state). Set to 0 to indicate that the program needn’t stay running for any particular amount of time. Default : 1 It means that if you have a `--limit=1` and your program has finished before 1 second, Supervisord will consider it failed. After 3 times (cf `startretries` value), your process wo'nt run anymore considering too many errors, quicky. Apparently it's a good pratice to set this value to `0`, specially with php. Doc : http://supervisord.org/configuration.html?highlight=startsecs
1 parent 1993834 commit f836d2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

messenger.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ times:
614614
command=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
615615
user=ubuntu
616616
numprocs=2
617+
startsecs=0
617618
autostart=true
618619
autorestart=true
619620
process_name=%(program_name)s_%(process_num)02d

0 commit comments

Comments
 (0)
0