Check whether the delayed job is running in rails

Virtual picture Virtual · Feb 14, 2013 · Viewed 20.1k times · Source

I am designing a status page where I need to show whether the delayed job is running. Please help me with a way to find it in the code.

Am using Rails 3.0.20, ruby 1.8.7 (2011-06-30 patchlevel 352), and delayed_job 3.0.4

Answer

pastullo picture pastullo · Jan 7, 2015

With Rails 5.x you can ssh into your server and go into the /current folder within your app and run:

RAILS_ENV=production bin/delayed_job status