From 7a3caf01bdb661d1f2b596dfc325692e367ad9da Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Fri, 8 Jun 2012 14:27:39 +0400 Subject: [PATCH] [refs #510] Add 2 resque workers to deploy config --- lib/recipes/resque.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/recipes/resque.rb b/lib/recipes/resque.rb index 9b5bab974..3ccc47414 100644 --- a/lib/recipes/resque.rb +++ b/lib/recipes/resque.rb @@ -24,7 +24,7 @@ Capistrano::Configuration.instance(:must_exist).load do end def start_workers - run "cd #{fetch :current_path} && QUEUE=fork_and_import #{ rails_env } BACKGROUND=yes PIDFILE=#{ fetch(:current_path) }/tmp/pids/resque.pid bundle exec rake resque:work" + run "cd #{fetch :current_path} && COUNT=2 QUEUE=fork_and_import #{ rails_env } BACKGROUND=yes PIDFILE=#{ fetch(:current_path) }/tmp/pids/resque.pid bundle exec rake resque:workers" end end end