diff options
Diffstat (limited to 'db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb')
-rw-r--r-- | db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb b/db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb index 709e0be8b79..255b64f9bc7 100644 --- a/db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb +++ b/db/post_migrate/20210706142819_re_schedule_latest_pipeline_id_population.rb @@ -1,28 +1,9 @@ # frozen_string_literal: true class ReScheduleLatestPipelineIdPopulation < ActiveRecord::Migration[6.1] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - DELAY_INTERVAL = 2.minutes.to_i - BATCH_SIZE = 100 - MIGRATION = 'PopulateLatestPipelineIds' - - disable_ddl_transaction! - - def up - return unless Gitlab.ee? - - queue_background_migration_jobs_by_range_at_intervals( - Gitlab::BackgroundMigration::PopulateLatestPipelineIds::ProjectSetting.has_vulnerabilities_without_latest_pipeline_set, - MIGRATION, - DELAY_INTERVAL, - batch_size: BATCH_SIZE, - primary_column_name: 'project_id' - ) - end - - def down - # no-op + def change + # no-op: This migration has been marked as no-op and replaced by + # `ReScheduleLatestPipelineIdPopulationWithLogging` as we've found some problems. + # For more information: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66050 end end |