Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
fb1e35e5
Commit
fb1e35e5
authored
May 31, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec fiel location
parent
3b569fce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/workers/ci/rescue_stale_live_trace_worker.rb
app/workers/ci/rescue_stale_live_trace_worker.rb
+2
-2
spec/workers/ci/rescue_stale_live_trace_worker_spec.rb
spec/workers/ci/rescue_stale_live_trace_worker_spec.rb
+1
-1
No files found.
app/workers/ci/rescue_stale_live_trace_worker.rb
View file @
fb1e35e5
...
...
@@ -7,8 +7,8 @@ module Ci
# Reschedule to archive live traces
#
# The targets are jobs with the following conditions
# -
It had been finished 1 hour ago, but it has not had an act
hived trace yet
# This c
ase happens when sidekiq-jobs of archiving traces are lost in order to restart sidekiq instace which hit RSS limit
# -
Jobs had been finished 1 hour ago, but they don't have an arc
hived trace yet
# This c
ould happen when their sidekiq-jobs are lost by SIGKILL
Ci
::
BuildTraceChunk
.
find_stale
(
finished_before:
1
.
hour
.
ago
)
do
|
build_ids
|
Ci
::
Build
.
where
(
id:
build_ids
).
find_each
do
|
build
|
begin
...
...
spec/workers/rescue_stale_live_trace_worker_spec.rb
→
spec/workers/
ci/
rescue_stale_live_trace_worker_spec.rb
View file @
fb1e35e5
require
'spec_helper'
describe
RescueStaleLiveTraceWorker
do
describe
Ci
::
RescueStaleLiveTraceWorker
do
subject
{
described_class
.
new
.
perform
}
before
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment