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

More Content by Matthew Kocher
Previous
Urban Dictionary: Recent Infrastructure Changes for Rails at Scale
Urban Dictionary: Recent Infrastructure Changes for Rails at Scale

Urban Dictionary is a Ruby on Rails application and the 109th most visited site in the country according to...

Next
iOS Roundup: Week of May 21, 2012
iOS Roundup: Week of May 21, 2012

Cool things this week: You can register your app to receive location services while in the background by a...

How do you measure digital transformation?

Take the Benchmark