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

Fix bad conflict resolution

parent f8fe64a6
...@@ -228,8 +228,7 @@ module Ci ...@@ -228,8 +228,7 @@ 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
......
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