Module: Gitlab::Database::Migrations::RedisHelpers
- Included in:
- Gitlab::Database::MigrationHelpers
- Defined in:
- lib/gitlab/database/migrations/redis_helpers.rb
Constant Summary collapse
- SCAN_START_CURSOR =
'0'
Instance Method Summary collapse
-
#queue_redis_migration_job(job_name) ⇒ Object
Check if the migration exists before enqueueing the worker.
Instance Method Details
#queue_redis_migration_job(job_name) ⇒ Object
Check if the migration exists before enqueueing the worker
10 11 12 13 |
# File 'lib/gitlab/database/migrations/redis_helpers.rb', line 10 def queue_redis_migration_job(job_name) RedisMigrationWorker.fetch_migrator!(job_name) RedisMigrationWorker.perform_async(job_name, SCAN_START_CURSOR) end |