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
950df8ba
Commit
950df8ba
authored
May 02, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename BuildTraceSwapChunkWorker to BuildTraceChunkFlushToDBWorker
parent
abe87373
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+1
-1
app/workers/all_queues.yml
app/workers/all_queues.yml
+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 @
950df8ba
...
...
@@ -99,7 +99,7 @@ module Ci
def
schedule_to_db
return
if
db?
BuildTrace
SwapChunk
Worker
.
perform_async
(
id
)
BuildTrace
ChunkFlushToDB
Worker
.
perform_async
(
id
)
end
def
fullfilled?
...
...
app/workers/all_queues.yml
View file @
950df8ba
...
...
@@ -66,7 +66,7 @@
-
pipeline_processing:pipeline_update
-
pipeline_processing:stage_update
-
pipeline_processing:update_head_pipeline_for_merge_request
-
pipeline_processing:build_trace_
swap_chunk
-
pipeline_processing:build_trace_
chunk_flush_to_db
-
repository_check:repository_check_clear
-
repository_check:repository_check_single_repository
...
...
app/workers/build_trace_
swap_chunk
_worker.rb
→
app/workers/build_trace_
chunk_flush_to_db
_worker.rb
View file @
950df8ba
class
BuildTrace
SwapChunk
Worker
class
BuildTrace
ChunkFlushToDB
Worker
include
ApplicationWorker
include
PipelineQueue
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
950df8ba
...
...
@@ -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
(
BuildTrace
SwapChunk
Worker
).
to
receive
(
:perform_async
).
once
expect
(
BuildTrace
ChunkFlushToDB
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
(
BuildTrace
SwapChunk
Worker
).
not_to
receive
(
:perform_async
)
expect
(
BuildTrace
ChunkFlushToDB
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