Fix bad conflict resolution
This commit is contained in:
parent
f8fe64a630
commit
38796f5617
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue