Exclude archived projects from mirror queries

parent 415668fd
...@@ -12,6 +12,7 @@ module GitLab ...@@ -12,6 +12,7 @@ module GitLab
class RowCountCollector < Base class RowCountCollector < Base
WHERE_MIRROR_ENABLED = <<~SQL.freeze WHERE_MIRROR_ENABLED = <<~SQL.freeze
projects.mirror = true projects.mirror = true
AND projects.archived = false
AND project_mirror_data.retry_count <= 14 AND project_mirror_data.retry_count <= 14
AND (projects.visibility_level = 20 OR plans.name IN ('early_adopter', 'bronze', 'silver', 'gold')) AND (projects.visibility_level = 20 OR plans.name IN ('early_adopter', 'bronze', 'silver', 'gold'))
SQL SQL
......
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