Class: MatviewIndexWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/matview_index_worker.rb

Overview

Sidekiq worker: matview index.

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object

Runs the job.

Parameters:

  • args (Array)

    the args to evaluate

Returns:

  • (Object)

    the result



11
12
13
14
15
16
17
# File 'app/workers/matview_index_worker.rb', line 11

def perform(*args)
  raise 'Missing service info' if args.blank?

  [args].flatten.each do |index_migration_class_name|
    index_migration_class_name.constantize.new.change
  end
end