Skip to content

Create worker to sync scan result policies for multiple projects

Sashi Kumar Kumaresan requested to merge sk/403001-move-to-worker into master

What does this MR do and why?

Addresses #403001 (closed)

!114113 (merged) increased the latency of AuthorizedProjectsWorker and caused QA test to fail #402400 (closed). It also caused sidekiq thread contention https://gitlab.com/gitlab-com/gl-infra/capacity-planning/-/issues/943 This is because of iteration of projects from project_ids in RefreshAuthorizedProjectsService adds substantial delay (all_security_orchestration_policy_configurations precisely)

This MR moves the logic to a new worker that accepts list of project ids.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading