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/models/ci
parentfb1e35e556f50636645d48c739dad37a4c7f722c (diff)
Rename find_stale. Fix worker name in declaration.
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/build_trace_chunk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build_trace_chunk.rb b/app/models/ci/build_trace_chunk.rb
index 4884e355c36..f17d8a07b13 100644
--- a/app/models/ci/build_trace_chunk.rb
+++ b/app/models/ci/build_trace_chunk.rb
@@ -52,7 +52,7 @@ module Ci
end
# Find stale live traces and return their build ids
- def find_stale(finished_before: 1.hour.ago)
+ def find_stale_in_batches(finished_before: 1.hour.ago)
include(EachBatch)
.select(:build_id)
.group(:build_id)