diff options
Diffstat (limited to 'db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb')
-rw-r--r-- | db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb b/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb deleted file mode 100644 index a38cb68ff08..00000000000 --- a/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -class ScheduleDeleteOrphanedDeployments < ActiveRecord::Migration[6.1] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - MIGRATION = 'DeleteOrphanedDeployments' - BATCH_SIZE = 100_000 - DELAY_INTERVAL = 2.minutes - - disable_ddl_transaction! - - def up - # no-op. - # This background migration is rescheduled in 20210722010101_cleanup_delete_orphaned_deployments_background_migration.rb - # with a smaller batch size, because the initial attempt caused - # 80 failures out of 1639 batches (faiulre rate is 4.88%) due to statement timeouts, - # that takes approx. 1 hour to perform a cleanup/sync migration. - # See https://gitlab.com/gitlab-org/gitlab/-/issues/335071#note_618380503 for more information. - end - - def down - # no-op - end -end |