Skip to content

Commit

Permalink
fix: auto restart workers
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Aug 12, 2023
1 parent 7ffd325 commit d2f8253
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions images/6/rootfs/etc/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@ stdout_logfile=/dev/stderr
stdout_logfile_maxbytes=0

[program:worker]
command=/usr/local/bin/php /var/www/shop/bin/console messenger:consume async --memory-limit=256M --time-limit=60
command=/usr/local/bin/php /var/www/shop/bin/console messenger:consume async failed --memory-limit=256M --time-limit=60
user=www-data
redirect_stderr=true
stdout_logfile=/dev/stderr
stdout_logfile_maxbytes=0
startsecs=0
autostart=true
autorestart=true
startretries=10

[program:scheduled-task]
command=/usr/local/bin/php /var/www/shop/bin/console scheduled-task:run --memory-limit=256M --time-limit=60
user=www-data
redirect_stderr=true
stdout_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stdout_logfile_maxbytes=0
startsecs=0
autostart=true
autorestart=true
startretries=10

0 comments on commit d2f8253

Please sign in to comment.