Create worker to sync scan result policies for multiple projects
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.
-
I have evaluated the MR acceptance checklist for this MR.