diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-05 10:53:39 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-05 10:54:33 +0200 |
commit | dbee81480b6a2a88535a0b042012c9fbf287e32b (patch) | |
tree | 821485f0c95b3f648de010bed8d501ae883ae293 /db/post_migrate/20180212101928_schedule_build_stage_migration.rb | |
parent | 4ef3e835cfee2ea63c29398d86d642571821fe32 (diff) | |
download | gitlab-ce-dbee81480b6a2a88535a0b042012c9fbf287e32b.tar.gz |
Reschedule pipeline stages migration to run it againfix/gb/reschedule-pipeline-stages-migration
Diffstat (limited to 'db/post_migrate/20180212101928_schedule_build_stage_migration.rb')
-rw-r--r-- | db/post_migrate/20180212101928_schedule_build_stage_migration.rb | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/db/post_migrate/20180212101928_schedule_build_stage_migration.rb b/db/post_migrate/20180212101928_schedule_build_stage_migration.rb index df15b2cd9d4..0f61fa81832 100644 --- a/db/post_migrate/20180212101928_schedule_build_stage_migration.rb +++ b/db/post_migrate/20180212101928_schedule_build_stage_migration.rb @@ -1,26 +1,11 @@ class ScheduleBuildStageMigration < ActiveRecord::Migration - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - MIGRATION = 'MigrateBuildStage'.freeze - BATCH_SIZE = 500 - - disable_ddl_transaction! - - class Build < ActiveRecord::Base - include EachBatch - self.table_name = 'ci_builds' - end + ## + # This migration has been rescheduled to run again, see + # `20180405101928_reschedule_builds_stages_migration.rb` + # def up - disable_statement_timeout - - Build.where('stage_id IS NULL').tap do |relation| - queue_background_migration_jobs_by_range_at_intervals(relation, - MIGRATION, - 5.minutes, - batch_size: BATCH_SIZE) - end + # noop end def down |