ruby-on-railsdelayed-job

How can I see the delayed job queue?


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


Solution

  • 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.