diff --git a/ee/app/workers/update_all_mirrors_worker.rb b/ee/app/workers/update_all_mirrors_worker.rb index fb94562d7e11abe08888bec6991703722d751352..361542008b96710f647dfecd41c1415a2a936701 100644 --- a/ee/app/workers/update_all_mirrors_worker.rb +++ b/ee/app/workers/update_all_mirrors_worker.rb @@ -42,6 +42,17 @@ def schedule_mirrors! last = nil scheduled = 0 + # On GitLab.com, we stopped processing free mirrors for private + # projects on 2020-03-27. Including mirrors with + # next_execution_timestamp of that date or earlier in the query will + # lead to higher query times: + # + # + # We should remove this workaround in favour of a simpler solution: + # + # + last = Time.utc(2020, 3, 28) if Gitlab.com? + while capacity > 0 batch_size = [capacity * 2, 500].min projects = pull_mirrors_batch(freeze_at: now, batch_size: batch_size, offset_at: last).to_a