mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
dynamic queues example
This commit is contained in:
parent
205f021010
commit
777392a112
1 changed files with 9 additions and 3 deletions
|
@ -5,12 +5,18 @@
|
|||
---
|
||||
:verbose: false
|
||||
:concurrency: 10
|
||||
|
||||
# Set timeout to 8 on Heroku, longer if you manage your own systems.
|
||||
:timeout: 30
|
||||
|
||||
# Sidekiq will run this file through ERB when reading it so you can
|
||||
# even put in dynamic logic, like a host-specific queue.
|
||||
# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/
|
||||
:queues:
|
||||
- [critical, 3]
|
||||
- [default, 2]
|
||||
- [low, 1]
|
||||
- critical
|
||||
- default
|
||||
- <%= `hostname`.strip %>
|
||||
- low
|
||||
|
||||
# you can override concurrency based on environment
|
||||
production:
|
||||
|
|
Loading…
Add table
Reference in a new issue