Class: OnlineMigrationsSchedulerWorker

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

Overview

Processes background data migrations enqueued by online_migrations gem.
This worker should be scheduled to run every minute.

Uses dedicated queue with concurrency of 1 to prevent parallel execution
of background migrations which could cause conflicts.

Instance Method Summary collapse

Instance Method Details

#performObject

Runs the job.

Returns:

  • (Object)

    the result



19
20
21
# File 'app/workers/online_migrations_scheduler_worker.rb', line 19

def perform
  OnlineMigrations.run_background_data_migrations
end