Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-24 18:30:08 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-11-27 13:56:15 +0300
commit07c7ba1bf4a1d0092d07a23e23caf698512d46e0 (patch)
tree4a51290ef6fea14299a1a20ae396b59bbf8fb4c5 /app/workers
parentd58bab4aa535a6a82416b9bf664e99468ad18e4b (diff)
Allow to drop jobs for deleted projects
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/stuck_ci_jobs_worker.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/workers/stuck_ci_jobs_worker.rb b/app/workers/stuck_ci_jobs_worker.rb
index 365a77c5be4..367e227f680 100644
--- a/app/workers/stuck_ci_jobs_worker.rb
+++ b/app/workers/stuck_ci_jobs_worker.rb
@@ -48,7 +48,6 @@ class StuckCiJobsWorker
loop do
jobs = Ci::Build.where(status: status)
.where('ci_builds.updated_at < ?', timeout.ago)
- .joins(:project).merge(Project.without_deleted)
.includes(:tags, :runner, project: :namespace)
.limit(100)
.to_a
@@ -67,4 +66,3 @@ class StuckCiJobsWorker
end
end
end
-