05/30/2012: Resque Me

May 30, 2012 Matthew Kocher

Helps

  • Using resque-scheduler with resque-status

We’re attempting to use both of these together, and encountered problems getting it to work.

Another project had found the answer. Resque scheduler only calls the correct method if you provide a custom_job_class in your yaml file:

This code from resque scheduler is the smoking gun:

if (job_klass = job_config['custom_job_class']) && (job_klass != 'Resque::Job')
    constantize(job_klass).scheduled(queue, klass_name, *params)
end

About the Author

Biography

Previous
Deploy strategies for HerokuSan
Deploy strategies for HerokuSan

Deploy Strategies If you look at the network graphs of heroku_san on github, you'll see a number of branch...

Next
FOWD Day 1: Tapworthy Mobile Design – Josh Clark
FOWD Day 1: Tapworthy Mobile Design – Josh Clark

Day 1 of the Future of Web Design was a fantastic workshop on designing for mobile with Josh Clark aka @g...