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
end
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|
yield(job) if block_given?
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