Commit bd3a544a authored by Lin Jen-Shin's avatar Lin Jen-Shin

Wrap against 80 chars and rename failed_or_canceled

to better reflect the status. Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18858398
parent cc43c9ac
......@@ -169,17 +169,19 @@ module Ci
end
def cancel_running
Gitlab::OptimisticLocking.retry_lock(statuses.cancelable) do |cancelable|
cancelable.each(&:cancel)
end
Gitlab::OptimisticLocking.retry_lock(
statuses.cancelable) do |cancelable|
cancelable.each(&:cancel)
end
end
def retry_failed(user)
Gitlab::OptimisticLocking.retry_lock(builds.latest.failed_or_canceled) do |failed|
failed.select(&:retryable?).each do |build|
Ci::Build.retry(build, user)
Gitlab::OptimisticLocking.retry_lock(
builds.latest.failed_or_canceled) do |failed_or_canceled|
failed_or_canceled.select(&:retryable?).each do |build|
Ci::Build.retry(build, user)
end
end
end
end
def mark_as_processable_after_stage(stage_idx)
......
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