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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
446086f1
Commit
446086f1
authored
Apr 05, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sidekiq worker for writing operation
parent
54aec65e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
app/models/ci/job_trace_chunk.rb
app/models/ci/job_trace_chunk.rb
+1
-1
app/workers/all_queues.yml
app/workers/all_queues.yml
+1
-0
app/workers/stash_trace_chunk_worker.rb
app/workers/stash_trace_chunk_worker.rb
+12
-0
No files found.
app/models/ci/job_trace_chunk.rb
View file @
446086f1
...
...
@@ -83,7 +83,7 @@ module Ci
def
schedule_to_db
return
if
db?
self
.
use_database!
StashTraceChunkWorker
.
perform_async
(
id
)
end
def
fullfilled?
...
...
app/workers/all_queues.yml
View file @
446086f1
...
...
@@ -62,6 +62,7 @@
-
pipeline_processing:pipeline_update
-
pipeline_processing:stage_update
-
pipeline_processing:update_head_pipeline_for_merge_request
-
pipeline_processing:stash_trace_chunk
-
repository_check:repository_check_clear
-
repository_check:repository_check_single_repository
...
...
app/workers/stash_trace_chunk_worker.rb
0 → 100644
View file @
446086f1
class
StashTraceChunkWorker
include
ApplicationWorker
include
PipelineQueue
queue_namespace
:pipeline_processing
def
perform
(
job_trace_chunk_id
)
Ci
::
JobTraceChunk
.
find_by
(
id:
job_trace_chunk_id
).
try
do
|
job_trace_chunk
|
job_trace_chunk
.
use_database!
end
end
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