Created
May 5, 2014 11:46
-
-
Save bogdan/11534573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
: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