diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-17 16:36:43 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-17 16:36:43 +0300 |
commit | b9cc02a68e465f17eb507fd6d1eab7800b382963 (patch) | |
tree | 219fddb4a79244fb975c23b78947ce9098c7cd9e /app/services | |
parent | 5f271a9fa2f54f766fc9bd04720c65d2145228d4 (diff) |
Remove support for locking in pipeline retry service
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/retry_pipeline_service.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/services/ci/retry_pipeline_service.rb b/app/services/ci/retry_pipeline_service.rb index 808f29adea2..2c5e130e5aa 100644 --- a/app/services/ci/retry_pipeline_service.rb +++ b/app/services/ci/retry_pipeline_service.rb @@ -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 |