From d2f8253706d0b79903122cd0de50131218362b37 Mon Sep 17 00:00:00 2001 From: Shyim Date: Sat, 12 Aug 2023 13:45:59 +0200 Subject: [PATCH] fix: auto restart workers --- images/6/rootfs/etc/supervisord.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/images/6/rootfs/etc/supervisord.conf b/images/6/rootfs/etc/supervisord.conf index 86e7cd0..58bf2cf 100644 --- a/images/6/rootfs/etc/supervisord.conf +++ b/images/6/rootfs/etc/supervisord.conf @@ -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 \ No newline at end of file +stdout_logfile_maxbytes=0 +startsecs=0 +autostart=true +autorestart=true +startretries=10