Commit bb6e1609 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'adjust-NullifyOrphanRunnerIdOnCiBuilds' into 'master'

Adjust NullifyOrphanRunnerIdOnCiBuilds batch parameters

See merge request gitlab-org/gitlab!83094
parents 4f7f72e3 4c0efcd3
......@@ -3,9 +3,9 @@
class ScheduleNullifyOrphanRunnerIdOnCiBuilds < Gitlab::Database::Migration[1.0]
MIGRATION = 'NullifyOrphanRunnerIdOnCiBuilds'
INTERVAL = 2.minutes
BATCH_SIZE = 100_000
MAX_BATCH_SIZE = 100_000 # 100k * 25k = 2.5B ci_builds
SUB_BATCH_SIZE = 1_000
BATCH_SIZE = 50_000
MAX_BATCH_SIZE = 150_000
SUB_BATCH_SIZE = 500
def up
queue_batched_background_migration(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment