diff --git a/k8s-queues.sh b/k8s-queues.sh index c1bd473..f3e6c55 100644 --- a/k8s-queues.sh +++ b/k8s-queues.sh @@ -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 &) \ No newline at end of file +#done &)