Skip to content

Commit

Permalink
fix: consume default queue (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
revant authored Oct 25, 2023
1 parent ebf3df2 commit 839d44d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ services:

queue-short:
<<: *backend_defaults
command: bench worker --queue short
command: bench worker --queue short,default

queue-long:
<<: *backend_defaults
command: bench worker --queue long
command: bench worker --queue long,default,short

scheduler:
<<: *backend_defaults
Expand Down
3 changes: 1 addition & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ honcho start \
watch \
schedule \
worker_short \
worker_long \
worker_default
worker_long
```

Alternatively you can use the VSCode launch configuration "Honcho SocketIO Watch Schedule Worker" which launches the same command as above.
Expand Down
4 changes: 2 additions & 2 deletions docs/single-compose-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ This setup is a very simple single compose file that does everything to start re

- backend, serves gunicorn backend
- frontend, serves static assets through nginx frontend reverse proxies websocket and gunicorn.
- queue-long, long rq worker.
- queue-short, short rq worker.
- queue-long, long default and short rq worker.
- queue-short, default and short rq worker.
- schedule, event scheduler.
- websocket, socketio websocket for realtime communication.

Expand Down
4 changes: 2 additions & 2 deletions pwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ services:
- bench
- worker
- --queue
- long
- long,default,short
volumes:
- sites:/home/frappe/frappe-bench/sites
- logs:/home/frappe/frappe-bench/logs
Expand All @@ -133,7 +133,7 @@ services:
- bench
- worker
- --queue
- short
- short,default
volumes:
- sites:/home/frappe/frappe-bench/sites
- logs:/home/frappe/frappe-bench/logs
Expand Down

0 comments on commit 839d44d

Please sign in to comment.