Class: Delayed::Monitor
- Inherits:
-
Object
- Object
- Delayed::Monitor
- Includes:
- Runnable
- Defined in:
- lib/delayed/monitor.rb
Constant Summary collapse
- METRICS =
%w( count future_count locked_count erroring_count failed_count max_lock_age max_age working_count workable_count alert_age_percent ).freeze
Instance Method Summary collapse
-
#initialize ⇒ Monitor
constructor
A new instance of Monitor.
- #run! ⇒ Object
Methods included from Runnable
Constructor Details
Instance Method Details
#run! ⇒ Object
25 26 27 28 29 30 |
# File 'lib/delayed/monitor.rb', line 25 def run! ActiveSupport::Notifications.instrument('delayed.monitor.run', ) do METRICS.each { |metric| emit_metric!(metric) } end interruptable_sleep(sleep_delay) end |