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

Fix bad conflict resolution

parent f8fe64a6
......@@ -228,13 +228,12 @@ module Ci
end
def cancel_running
Gitlab::OptimisticLocking.retry_lock(
statuses.cancelable) do |cancelable|
cancelable.find_each do |job|
yield(job) if block_given?
job.cancel
end
Gitlab::OptimisticLocking.retry_lock(cancelable_statuses) do |cancelable|
cancelable.find_each do |job|
yield(job) if block_given?
job.cancel
end
end
end
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