diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-03 13:02:51 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-03 13:02:51 +0200 |
commit | f6966d96ec5941db364a2c8d9d2d80d3aa7d20f2 (patch) | |
tree | 14bb56ca5b2ba53bac657166202818aa8bf3710f /db | |
parent | a078767223ca9e66a9d5dbf614b2efc8bf7c45d4 (diff) | |
download | gitlab-ce-f6966d96ec5941db364a2c8d9d2d80d3aa7d20f2.tar.gz |
Reduce a delay between stage_id scheduled migrations
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb b/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb index 30849ea1361..ebec4cb6bb7 100644 --- a/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb +++ b/db/post_migrate/20170628080858_migrate_stage_id_reference_in_background.rb @@ -16,7 +16,7 @@ class MigrateStageIdReferenceInBackground < ActiveRecord::Migration Build.where(stage_id: nil).in_batches(of: BATCH_SIZE) do |relation| jobs = relation.pluck(:id).map { |id| [MIGRATION, [id]] } - schedule = index * 5.minutes + schedule = index * 2.minutes index += 1 BackgroundMigrationWorker.perform_bulk_in(schedule, jobs) |