How do you tell a specific Delayed::Job to run in console?

Trip picture Trip · Aug 4, 2011 · Viewed 37.8k times · Source

For some reason, Delayed::Job's has decided to queue up but not excecute anything even though I've restarted it several times, even kill -9'd it and restarted it. It won't run any jobs.

Can I , in /console, specify a specific job and tell it to work?

Ex:.. Delayed::Job.find(x).run

Answer

David Tuite picture David Tuite · Nov 22, 2013

You can also do it like this:

Delayed::Worker.new.run( Delayed::Job.find(x) )