Update k8s-queues.sh, replace with BASH EXIT internal signal

This commit is contained in:
Jérémy Munsch 2024-06-05 07:48:05 +00:00
parent 04f337b21d
commit 71ccade4ad

View file

@ -14,7 +14,7 @@ function stopQueues() {
# handle graceful shutdown
trap "" SIGPIPE
trap stopQueues SIGTERM SIGINT SIGHUP
trap stopQueues EXIT
echo "Starting PHP queue workers..."
@ -27,4 +27,4 @@ done
#(while $work; do
# php artisan queue:work --queue="$(grep -oP 'SQS_QUEUE=\K.*' .env)" --no-interaction
# sleep 1
#done &)
#done &)