Change queues to run --once as optional

This commit is contained in:
Deon George 2020-01-30 20:39:00 +11:00
parent 584e56aceb
commit b244577c76

2
init
View File

@ -94,7 +94,7 @@ elif [ "$role" = "queue" -a -e artisan ]; then
su www-data -s /bin/sh -c "
while true; do
php ${PHP_OPTIONS} artisan queue:work --verbose --once --tries=${WORK_TRIES:-1} --timeout=${WORK_TIMEOUT:-90} ${WORK_QUEUES:+--queue=${WORK_QUEUES}} ${WORK_MEMORY:+--memory=${WORK_MEMORY}}
php ${PHP_OPTIONS} artisan queue:work --verbose --tries=${WORK_TRIES:-1} --timeout=${WORK_TIMEOUT:-90} ${WORK_QUEUES:+--queue=${WORK_QUEUES}} ${WORK_MEMORY:+--memory=${WORK_MEMORY}} ${WORK_ONCE:+--once}
done
"