• Bob Van Landuyt's avatar
    Mark the AuthorizedProjectsWorker as idempotent · 83fa8fbb
    Bob Van Landuyt authored
    The AuthorizedProjectsWorker is a wrapper around the
    `Users::RefreshAuthorizedProjectsService`.
    
    The service itself prevents 2 jobs from running at the same time using
    an exclusive lease. And the job itself creates and removes any project
    authorizations by recalculating all the authorizations for the given
    user using `Gitlab::ProjectAuthorizations`.
    
    Doing this twice will mean the last execution has no effect.
    83fa8fbb
all_queues.yml 34.3 KB