Commit 28a949f5 authored by Saikat Sarkar's avatar Saikat Sarkar

Make StoreSecurityReportsWorker cpu-bound

parent 9435be0e
...@@ -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: []
......
...@@ -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?
......
---
title: Make StoreSecurityReportsWorker cpu-bound
merge_request: 56149
author:
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment