diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb')
-rw-r--r-- | db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb b/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb index cbd0d0ea3a2..a38cb68ff08 100644 --- a/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb +++ b/db/post_migrate/20210622141148_schedule_delete_orphaned_deployments.rb @@ -11,13 +11,12 @@ class ScheduleDeleteOrphanedDeployments < ActiveRecord::Migration[6.1] disable_ddl_transaction! def up - queue_background_migration_jobs_by_range_at_intervals( - define_batchable_model('deployments'), - MIGRATION, - DELAY_INTERVAL, - batch_size: BATCH_SIZE, - track_jobs: true - ) + # 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 |