Welcome to mirror list, hosted at ThFree Co, Russian Federation.

periodic_recalculate_worker.rb « authorized_project_update « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d1ad67d7bbb07b33471dd1fb234cb88bef57025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module AuthorizedProjectUpdate
  class PeriodicRecalculateWorker
    include ApplicationWorker
    # This worker does not perform work scoped to a context
    include CronjobQueue # rubocop:disable Scalability/CronWorkerContext

    feature_category :source_code_management
    urgency :low

    idempotent!

    def perform
      if ::Feature.enabled?(:periodic_project_authorization_recalculation, default_enabled: true)
        AuthorizedProjectUpdate::PeriodicRecalculateService.new.execute
      end
    end
  end
end