Class: Nexaas::Async::Collector::AsyncResourceJob

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/nexaas/async/collector/async_resource_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(opts = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'app/workers/nexaas/async/collector/async_resource_job.rb', line 9

def perform(opts={})
  initialize_options(opts)
  start_time = Time.current.to_i
  instrument_start(start_time)
  Persist.save(sliced_options(opts))
  instrument_finish(start_time)
end