Class: JobTick::Registry
- Inherits:
-
Object
- Object
- JobTick::Registry
- Defined in:
- lib/jobtick/registry.rb
Class Method Summary collapse
Class Method Details
.sync ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/jobtick/registry.rb', line 5 def self.sync monitors = [ Parsers::Whenever.parse, Parsers::SolidQueue.parse, Parsers::Sidekiq.parse ].flatten.compact return [] if monitors.empty? app_name = Rails.application.class.module_parent_name if defined?(Rails) JobTick.client.register(monitors, app_name: app_name) monitors end |