I'm using the shoryuken gem by running
bundle exec shoryuken -R -C config/shoryuken.yml
and shoryuken.yml is
concurrency: 25
delay: 0
queues:
- [development_high, 30]
- [development_mid, 6]
- [development_low, 2]
This works fine. However, I'd like to use the environment specific queues, e.g. use production_high
in production.
I make sure these queues exist in
config/initializers/aws.rb
using
%w(low mid high).each do |q|
sqs.create_queue(queue_name: Rails.env + '_' + q)
end