mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
fix capistrano task
This commit is contained in:
parent
593ce38894
commit
2307820e23
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ Capistrano::Configuration.instance.load do
|
|||
namespace :sidekiq do
|
||||
def for_each_process(&block)
|
||||
fetch(:sidekiq_processes).times do |idx|
|
||||
yield((process == 0 ? "#{fetch(:sidekiq_pid)}" : "#{fetch(:sidekiq_pid)}-#{process}"), idx)
|
||||
yield((idx == 0 ? "#{fetch(:sidekiq_pid)}" : "#{fetch(:sidekiq_pid)}-#{idx}"), idx)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue