Created
March 1, 2012 10:15
-
-
Save ono/1948746 to your computer and use it in GitHub Desktop.
resque:work_fast_pid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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