Skip to content

Log duration for various methods in AuthorizedProjectsWorker

What does this MR do and why?

  • We are experiencing issues with the AuthorizedProjectsWorker, especially around how long each request is taking.

  • The worker calls Users::RefreshAuthorizedProjectsService to calculate which records in the project_authorizations table need to be refreshed and saves those changes.

  • This MR adds duration stats to the different steps in this service to figure out which part of the codebase needs to be optimised.

  • No changelog needed since it's a developer facing change

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #484754

Edited by Hinam Mehra

Merge request reports

Loading