class Roqua::Probes::DelayedJobProbe
Public Instance Methods
Source
# File lib/roqua/probes/delayed_job_probe.rb, line 8 def backlog_count Delayed::Job.where(locked_at: nil).where('run_at < ?', Time.zone.now).count end
Source
# File lib/roqua/probes/delayed_job_probe.rb, line 12 def run Appsignal.set_gauge('delayed_job_backlog_count', backlog_count) end