diff --git a/config/queue-start.sh b/config/queue-start.sh index b1c14a0..e5b2698 100644 --- a/config/queue-start.sh +++ b/config/queue-start.sh @@ -3,8 +3,9 @@ #set default values for env export QUEUE=${QUEUE:-default} export TRIES=${TRIES:-3} +export FAILDELAY=${FAILDELAY:-60} -echo "Starting queue '$QUEUE' with '$TRIES' tries" +echo "Starting queue '${QUEUE}' with '${TRIES}' tries and failed delay ${FAILDELAY}s" which supervisord supervisord -v diff --git a/config/supervisord.conf b/config/supervisord.conf index 7325f49..f886443 100644 --- a/config/supervisord.conf +++ b/config/supervisord.conf @@ -10,7 +10,7 @@ logfile = /dev/null serverurl=unix:///var/run/supervisor.sock [program:artisan] -command = php /data/artisan queue:work --queue=%(ENV_QUEUE)s --tries=%(ENV_TRIES)s --daemon +command = php /data/artisan queue:work --queue=%(ENV_QUEUE)s --tries=%(ENV_TRIES)s --delay=%(ENV_FAILDELAY)s --daemon process_name = %(program_name)s_%(process_num)02d autostart = true autorestart = true