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:
authorShinya Maeda <shinya@gitlab.com>2018-05-31 11:11:50 +0300
committerShinya Maeda <shinya@gitlab.com>2018-06-06 11:49:48 +0300
commit10acdc30df99ede1356493c14a57b94ed1ae7950 (patch)
treebdb3bd43181fe5ad4aaf5e1e31461de4ec07207d /app/workers/ci
parentfb1e35e556f50636645d48c739dad37a4c7f722c (diff)
Rename find_stale. Fix worker name in declaration.
Diffstat (limited to 'app/workers/ci')
-rw-r--r--app/workers/ci/rescue_stale_live_trace_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/ci/rescue_stale_live_trace_worker.rb b/app/workers/ci/rescue_stale_live_trace_worker.rb
index 0f196993669..be0194b63ae 100644
--- a/app/workers/ci/rescue_stale_live_trace_worker.rb
+++ b/app/workers/ci/rescue_stale_live_trace_worker.rb
@@ -9,7 +9,7 @@ module Ci
# The targets are jobs with the following conditions
# - Jobs had been finished 1 hour ago, but they don't have an archived trace yet
# This could happen when their sidekiq-jobs are lost by SIGKILL
- Ci::BuildTraceChunk.find_stale(finished_before: 1.hour.ago) do |build_ids|
+ Ci::BuildTraceChunk.find_stale_in_batches(finished_before: 1.hour.ago) do |build_ids|
Ci::Build.where(id: build_ids).find_each do |build|
begin
build.trace.archive!