Skip to content

Instantly share code, notes, and snippets.

@ono
Created March 1, 2012 10:15
Show Gist options
  • Select an option

  • Save ono/1948746 to your computer and use it in GitHub Desktop.

Select an option

Save ono/1948746 to your computer and use it in GitHub Desktop.
resque:work_fast_pid
namespace :resque do
task :work_fast_pid do
File.open(ENV['PIDFILE'], 'w') { |f| f << Process.pid.to_s } if ENV['PIDFILE']
Rake::Task['resque:work'].invoke
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment