Update k8s-queues.sh, replace with BASH EXIT internal signal
This commit is contained in:
parent
04f337b21d
commit
71ccade4ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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 &)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue