Commit 38796f56 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix bad conflict resolution

parent f8fe64a6
...@@ -228,13 +228,12 @@ module Ci ...@@ -228,13 +228,12 @@ module Ci
end end
def cancel_running def cancel_running
Gitlab::OptimisticLocking.retry_lock( Gitlab::OptimisticLocking.retry_lock(cancelable_statuses) do |cancelable|
statuses.cancelable) 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
end
end end
end
end end
def auto_cancel_running(pipeline) def auto_cancel_running(pipeline)
......
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