Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created May 5, 2014 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan/11534573 to your computer and use it in GitHub Desktop.
Save bogdan/11534573 to your computer and use it in GitHub Desktop.
---
: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