Skip to content

Commit

Permalink
moves workers that require sidekiq por to their own queue in producti…
Browse files Browse the repository at this point in the history
…on only
  • Loading branch information
Michael Jurke committed Nov 26, 2014
1 parent daf01b4 commit 8f344c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/workers/queue_disabler_meta_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class QueueDisablerMetaWorker

recurrence { daily.hour_of_day(8) }

sidekiq_options queue: :default,
sidekiq_options queue: :sidekiq_pro,
retry: 5,
backtrace: true

Expand Down
2 changes: 1 addition & 1 deletion app/workers/queue_enabler_meta_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class QueueEnablerMetaWorker

recurrence { daily.hour_of_day(0) }

sidekiq_options queue: :default,
sidekiq_options queue: :sidekiq_pro,
retry: 5,
backtrace: true

Expand Down
2 changes: 2 additions & 0 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ staging:
production:
:concurrency: 10
:timeout: 550
:queues:
- [sidekiq_pro, 1]
:queues:
- [default, 5]
- [mass_upload, 3]
Expand Down

0 comments on commit 8f344c0

Please sign in to comment.