diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-31 17:11:50 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-06-06 17:49:48 +0900 |
commit | 10acdc30df99ede1356493c14a57b94ed1ae7950 (patch) | |
tree | bdb3bd43181fe5ad4aaf5e1e31461de4ec07207d /app/models | |
parent | fb1e35e556f50636645d48c739dad37a4c7f722c (diff) | |
download | gitlab-ce-10acdc30df99ede1356493c14a57b94ed1ae7950.tar.gz |
Rename find_stale. Fix worker name in declaration.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build_trace_chunk.rb | 2 |
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) |