From aea24d024baa7e3064ff18e108a4e70b7ab0a34b Mon Sep 17 00:00:00 2001 From: Takao Baba Date: Wed, 12 Feb 2014 22:11:54 +0900 Subject: [PATCH] Fix error "Errno::EPIPE: Broken pipe" on start. The following error was occured on starting workers. Fix it. "Errno::EPIPE: Broken pipe @ io_write - " --- lib/capistrano-resque/tasks/capistrano-resque.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano-resque/tasks/capistrano-resque.rake b/lib/capistrano-resque/tasks/capistrano-resque.rake index b3ab43a..ffff90d 100644 --- a/lib/capistrano-resque/tasks/capistrano-resque.rake +++ b/lib/capistrano-resque/tasks/capistrano-resque.rake @@ -47,7 +47,7 @@ namespace :resque do number_of_workers.times do pid = "./tmp/pids/resque_work_#{worker_id}.pid" within current_path do - execute :rake, %{RAILS_ENV=#{fetch(:rails_env)} QUEUE="#{queue}" PIDFILE=#{pid} BACKGROUND=yes VERBOSE=1 INTERVAL=#{fetch(:interval)} #{"environment" if fetch(:resque_environment_task)} resque:work} + execute :rake, %{RAILS_ENV=#{fetch(:rails_env)} QUEUE="#{queue}" PIDFILE=#{pid} BACKGROUND=yes VERBOSE=1 INTERVAL=#{fetch(:interval)} #{"environment" if fetch(:resque_environment_task)} resque:work 2&>1} end worker_id += 1 end