Skip to content

Commit

Permalink
Fix error "Errno::EPIPE: Broken pipe" on start.
Browse files Browse the repository at this point in the history
The following error was occured on starting workers. Fix it.
"Errno::EPIPE: Broken pipe @ io_write - <STDERR>"
  • Loading branch information
babatakao committed Feb 12, 2014
1 parent d5bc43b commit aea24d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano-resque/tasks/capistrano-resque.rake
Expand Up @@ -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
Expand Down

0 comments on commit aea24d0

Please sign in to comment.