5
6
7
8
9
10
11
12
13
14
15
16
|
# 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?
JobTick.client.register(monitors)
monitors
end
|