How can I see the delayed job queue?

knotito picture knotito · Sep 2, 2013 · Viewed 42.9k times · Source

I wonder if I succeeded to get Delayed::Job working. Can't see jobs in the delayed_jobs table.

  • Is that normal?
  • Is there any other ways too see job queue?

Answer

Nicolas Garnil picture Nicolas Garnil · Sep 2, 2013

DelayedJob stores a database record for each enqueued job so you can retrieve them directly through the rails console (assuming you are using ActiveRecord or similar).

Open the rails console:

$ rails c

and then query the enqueued jobs:

$ Delayed::Job.all

or

$ Delayed::Job.last

Check out the documentation.

If you installed delayed_job with another database like Redis you may want to go and check in there the queued jobs.