Skip to content

Commit 2e4e93b

Browse files
committed
feat: make queue name configurable
1 parent 092a402 commit 2e4e93b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

8.4/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ENV SCHEDULE_ENABLED=true
4848

4949
# Queue settings
5050
ENV QUEUE_ENABLED=false
51+
ENV QUEUE_NAME=default
5152
ENV QUEUE_MAX_JOBS=50
5253
ENV QUEUE_SLEEP=30
5354
ENV QUEUE_REST=1

common/usr/local/bin/queue-work

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ echo '
55
🚀 Laravel queue worker
66
-------------------------------------
77
🛠️ Configuration
8+
• QUEUE: '"$QUEUE_NAME"'
89
• MAX_JOBS: '"$QUEUE_MAX_JOBS"'
910
• SLEEP: '"$QUEUE_SLEEP"'
1011
• REST: '"$QUEUE_REST"'
@@ -13,6 +14,7 @@ echo '
1314
'
1415

1516
artisan queue:work \
17+
--queue $QUEUE_NAME \
1618
--max-jobs $QUEUE_MAX_JOBS \
1719
--sleep $QUEUE_SLEEP \
1820
--rest $QUEUE_REST \

0 commit comments

Comments
 (0)