Skip to content

Commit bf25179

Browse files
m90deer-wmde
andauthored
feat: Allow passing a queue name to the worker (#709)
* feat: Allow passing a queue name to the worker * Update start.sh Co-authored-by: Deniz Erdogan <91744937+deer-wmde@users.noreply.github.com> --------- Co-authored-by: Deniz Erdogan <91744937+deer-wmde@users.noreply.github.com>
1 parent dcb787f commit bf25179

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# api
22

3+
## 8x.30.0 - 14 December 2023
4+
- Allow passing a queue name to the worker
5+
36
## 8x.29.1 - 13 December 2023
47
- Try to fix memory exhaustion issue when running wbs-qs:rebuild command
58

start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44

55
role=${CONTAINER_ROLE:-app}
66
env=${APP_ENV:-production}
7+
queue_name=${QUEUE_NAME:-default}
78

89
# if [ "$env" != "local" ]; then
910
# echo "Caching configuration..."
@@ -16,8 +17,8 @@ if [ "$role" = "app" ]; then
1617

1718
elif [ "$role" = "queue" ]; then
1819

19-
echo "Running the queue..."
20-
php /var/www/html/artisan queue:work --verbose --tries=5 --timeout=90
20+
echo "Running the $queue_name queue..."
21+
php /var/www/html/artisan queue:work --verbose --tries=5 --timeout=90 --queue="$queue_name"
2122

2223
elif [ "$role" = "scheduler" ]; then
2324

0 commit comments

Comments
 (0)