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
Léo-Paul Géneau
gitlab-ce
Commits
ae76f0c3
Commit
ae76f0c3
authored
May 02, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all
parents
40fa5ae7
7d626c41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+1
-1
app/workers/build_trace_chunk_flush_to_db_worker.rb
app/workers/build_trace_chunk_flush_to_db_worker.rb
+1
-1
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+2
-2
No files found.
app/models/ci/build_trace_chunk.rb
View file @
ae76f0c3
...
...
@@ -120,7 +120,7 @@ module Ci
def
schedule_to_db
return
if
db?
BuildTraceChunkFlushToD
B
Worker
.
perform_async
(
id
)
BuildTraceChunkFlushToD
b
Worker
.
perform_async
(
id
)
end
def
fullfilled?
...
...
app/workers/build_trace_chunk_flush_to_db_worker.rb
View file @
ae76f0c3
class
BuildTraceChunkFlushToD
B
Worker
class
BuildTraceChunkFlushToD
b
Worker
include
ApplicationWorker
include
PipelineQueue
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
ae76f0c3
...
...
@@ -75,7 +75,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
let
(
:value
)
{
'a'
*
described_class
::
CHUNK_SIZE
}
it
'schedules stashing data'
do
expect
(
BuildTraceChunkFlushToD
B
Worker
).
to
receive
(
:perform_async
).
once
expect
(
BuildTraceChunkFlushToD
b
Worker
).
to
receive
(
:perform_async
).
once
subject
end
...
...
@@ -112,7 +112,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
context
'when fullfilled chunk size'
do
it
'does not schedule stashing data'
do
expect
(
BuildTraceChunkFlushToD
B
Worker
).
not_to
receive
(
:perform_async
)
expect
(
BuildTraceChunkFlushToD
b
Worker
).
not_to
receive
(
:perform_async
)
subject
end
...
...
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