Commit 31ca3288 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'fix-schedule-epics-migration' into 'master'

Fix scheduling migration ordering epics & issues

See merge request gitlab-org/gitlab!19371
parents 6e264fb3 a841ba3d
......@@ -24,7 +24,7 @@ class ScheduleEpicIssuesAfterEpicsMove < ActiveRecord::Migration[5.2]
Epic.each_batch(of: BATCH_SIZE) do |batch, index|
range = batch.pluck('MIN(id)', 'MAX(id)').first
delay = index * interval
delay = index * INTERVAL
BackgroundMigrationWorker.perform_in(delay, MIGRATION, *range)
end
end
......
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