Class: OnlineMigrationsSchedulerWorker
- Inherits:
-
Object
- Object
- OnlineMigrationsSchedulerWorker
- Includes:
- Sidekiq::Worker
- 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
#perform ⇒ Object
16 17 18 |
# File 'app/workers/online_migrations_scheduler_worker.rb', line 16 def perform OnlineMigrations.run_background_data_migrations end |