Commit fb1e35e5 authored by Shinya Maeda's avatar Shinya Maeda

Fix spec fiel location

parent 3b569fce
...@@ -7,8 +7,8 @@ module Ci ...@@ -7,8 +7,8 @@ module Ci
# Reschedule to archive live traces # Reschedule to archive live traces
# #
# The targets are jobs with the following conditions # The targets are jobs with the following conditions
# - It had been finished 1 hour ago, but it has not had an acthived trace yet # - Jobs had been finished 1 hour ago, but they don't have an archived trace yet
# This case happens when sidekiq-jobs of archiving traces are lost in order to restart sidekiq instace which hit RSS limit # 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(finished_before: 1.hour.ago) do |build_ids|
Ci::Build.where(id: build_ids).find_each do |build| Ci::Build.where(id: build_ids).find_each do |build|
begin begin
......
require 'spec_helper' require 'spec_helper'
describe RescueStaleLiveTraceWorker do describe Ci::RescueStaleLiveTraceWorker do
subject { described_class.new.perform } subject { described_class.new.perform }
before do before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment