Commit 45f11780 authored by Felipe Artur's avatar Felipe Artur

Fix pipeline related failing specs

parent d614a9c3
...@@ -231,11 +231,12 @@ module Ci ...@@ -231,11 +231,12 @@ module Ci
end end
def cancel_running def cancel_running
Gitlab::OptimisticLocking.retry_lock( Gitlab::OptimisticLocking.retry_lock(statuses.cancelable) do |cancelable|
statuses.cancelable) 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
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