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
28a949f5
Commit
28a949f5
authored
Mar 10, 2021
by
Saikat Sarkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make StoreSecurityReportsWorker cpu-bound
parent
9435be0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
ee/app/workers/all_queues.yml
ee/app/workers/all_queues.yml
+1
-1
ee/app/workers/store_security_reports_worker.rb
ee/app/workers/store_security_reports_worker.rb
+2
-0
ee/changelogs/unreleased/make-worker-cpu-bound.yml
ee/changelogs/unreleased/make-worker-cpu-bound.yml
+5
-0
No files found.
ee/app/workers/all_queues.yml
View file @
28a949f5
...
@@ -631,7 +631,7 @@
...
@@ -631,7 +631,7 @@
:feature_category: :static_application_security_testing
:feature_category: :static_application_security_testing
:has_external_dependencies:
:has_external_dependencies:
:urgency: :low
:urgency: :low
:resource_boundary: :
unknown
:resource_boundary: :
cpu
:weight:
2
:weight:
2
:idempotent:
:idempotent:
:tags: []
:tags: []
...
...
ee/app/workers/store_security_reports_worker.rb
View file @
28a949f5
...
@@ -6,6 +6,8 @@ class StoreSecurityReportsWorker # rubocop:disable Scalability/IdempotentWorker
...
@@ -6,6 +6,8 @@ class StoreSecurityReportsWorker # rubocop:disable Scalability/IdempotentWorker
include
ApplicationWorker
include
ApplicationWorker
include
SecurityScansQueue
include
SecurityScansQueue
worker_resource_boundary
:cpu
def
perform
(
pipeline_id
)
def
perform
(
pipeline_id
)
Ci
::
Pipeline
.
find
(
pipeline_id
).
try
do
|
pipeline
|
Ci
::
Pipeline
.
find
(
pipeline_id
).
try
do
|
pipeline
|
break
unless
pipeline
.
project
.
can_store_security_reports?
break
unless
pipeline
.
project
.
can_store_security_reports?
...
...
ee/changelogs/unreleased/make-worker-cpu-bound.yml
0 → 100644
View file @
28a949f5
---
title
:
Make StoreSecurityReportsWorker cpu-bound
merge_request
:
56149
author
:
type
:
performance
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