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/workers/ci | |
parent | fb1e35e556f50636645d48c739dad37a4c7f722c (diff) | |
download | gitlab-ce-10acdc30df99ede1356493c14a57b94ed1ae7950.tar.gz |
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.rb | 2 |
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! |