Commit 7bebfd90 authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch 'make-worker-cpu-bound' into 'master'

Make StoreSecurityReportsWorker cpu-bound

See merge request gitlab-org/gitlab!56149
parents 51a27920 28a949f5
......@@ -631,7 +631,7 @@
:feature_category: :static_application_security_testing
:has_external_dependencies:
:urgency: :low
:resource_boundary: :unknown
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
......
......@@ -6,6 +6,8 @@ class StoreSecurityReportsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
include SecurityScansQueue
worker_resource_boundary :cpu
def perform(pipeline_id)
Ci::Pipeline.find(pipeline_id).try do |pipeline|
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