summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 03:20:54 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-05 14:30:28 +0900
commitdcf09d11447c264f4b4028ea80eea2be913c2f5b (patch)
treed992feb77bb5246ba05ebf18610b05bce8859c63 /app/workers
parent597bc29260c4be3a1527a1c5307bec40004bac4d (diff)
downloadgitlab-ce-dcf09d11447c264f4b4028ea80eea2be913c2f5b.tar.gz
Implement `failure_reason` on `ci_builds`
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/stuck_ci_jobs_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/stuck_ci_jobs_worker.rb b/app/workers/stuck_ci_jobs_worker.rb
index 8b0cfcc8af8..3e635f140fd 100644
--- a/app/workers/stuck_ci_jobs_worker.rb
+++ b/app/workers/stuck_ci_jobs_worker.rb
@@ -53,7 +53,7 @@ class StuckCiJobsWorker
def drop_build(type, build, status, timeout)
Rails.logger.info "#{self.class}: Dropping #{type} build #{build.id} for runner #{build.runner_id} (status: #{status}, timeout: #{timeout})"
Gitlab::OptimisticLocking.retry_lock(build, 3) do |b|
- b.drop
+ b.drop(:stuck_and_timeout)
end
end
end