Commit d9df37e0 authored by Sean Carroll's avatar Sean Carroll

Apply suggestion to app/models/ci/pipeline.rb

parent 1c03003b
...@@ -461,7 +461,7 @@ module Ci ...@@ -461,7 +461,7 @@ module Ci
end end
def cancel_running(retries: nil) def cancel_running(retries: nil)
retry_optimistic_lock(cancelable_statuses) do |cancelable| retry_optimistic_lock(cancelable_statuses, retries) do |cancelable|
cancelable.find_each do |job| cancelable.find_each do |job|
yield(job) if block_given? yield(job) if block_given?
job.cancel job.cancel
......
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