Commit 49e06ce6 authored by Marius Bobin's avatar Marius Bobin

Merge branch 'skip-empty-query-in-destroy-batch-service' into 'master'

Skip expire_at correction query if there are no artifacts

See merge request gitlab-org/gitlab!84009
parents c4d8496f 4800947b
...@@ -117,7 +117,7 @@ module Ci ...@@ -117,7 +117,7 @@ module Ci
wrongly_expired_artifacts, @job_artifacts = @job_artifacts.partition { |artifact| wrongly_expired?(artifact) } wrongly_expired_artifacts, @job_artifacts = @job_artifacts.partition { |artifact| wrongly_expired?(artifact) }
remove_expire_at(wrongly_expired_artifacts) remove_expire_at(wrongly_expired_artifacts) if wrongly_expired_artifacts.any?
end end
def fix_expire_at? def fix_expire_at?
......
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