Skip to content

Instantly share code, notes, and snippets.

@bogdan

bogdan/sidekiq.yml

Created May 5, 2014
Embed
What would you like to do?
---
:verbose: false
<% if ENV["WORKER"] == "mailer" %>
:concurrency: 5
:queues:
<% views = YAML.load_file(File.join(".", "config", "view_settings.yml")) %>
<% views.select { |k, v| v[:email_view] }.keys.each do |queue| %>
- [<%= queue %>, 10]
<% end %>
- [email_blast, 1]
<% elsif ENV["WORKER"] == "webhook" %>
:concurrency: 3
:queues:
- [webhook, 100]
<% elsif ENV["WORKER"] == "report_export" %>
:concurrency: 1
:queues:
- [export, 100]
<% else %>
:concurrency: 2
:queues:
- [default, 100]
- [create_default_impression, 90]
- [create_impression, 90]
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment