Update lib/recipes/resque.rb

This commit is contained in:
Vokhmin Alexey V 2013-01-29 01:59:56 +04:00
parent 48618155ff
commit 5fefb1f1da
1 changed files with 4 additions and 4 deletions

View File

@ -27,13 +27,13 @@ Capistrano::Configuration.instance(:must_exist).load do
def start_workers def start_workers
queue = [ queue = [
:publish_observer,
:rpm_worker_observer,
:iso_worker_observer,
:fork_import, :fork_import,
:hook, :hook,
:clone_build, :clone_build,
:notification, :notification
:iso_worker_observer,
:rpm_worker_observer,
:publish_observer
].join(',') ].join(',')
run "cd #{fetch :current_path} && COUNT=#{workers_count} QUEUE=#{queue} #{rails_env} BACKGROUND=yes bundle exec rake resque:workers" run "cd #{fetch :current_path} && COUNT=#{workers_count} QUEUE=#{queue} #{rails_env} BACKGROUND=yes bundle exec rake resque:workers"
end end