Commit b9cc02a6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove support for locking in pipeline retry service

parent 5f271a9f
......@@ -5,7 +5,7 @@ module Ci
raise Gitlab::Access::AccessDeniedError
end
each_build(pipeline.builds.failed_or_canceled) do |build|
pipeline.builds.failed_or_canceled.find_each do |build|
next unless build.retryable?
Ci::RetryBuildService.new(project, current_user)
......@@ -18,13 +18,5 @@ module Ci
pipeline.process!
end
private
def each_build(relation)
Gitlab::OptimisticLocking.retry_lock(relation) do |builds|
builds.find_each { |build| yield build }
end
end
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