Class: AuthorizedProjectUpdate::PeriodicRecalculateWorker

Inherits:
Object
  • Object
show all
Includes:
ApplicationWorker, CronjobQueue
Defined in:
app/workers/authorized_project_update/periodic_recalculate_worker.rb

Constant Summary

Constants included from ApplicationWorker

ApplicationWorker::LOGGING_EXTRA_KEY

Constants included from WorkerAttributes

WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES

Instance Method Summary collapse

Methods included from Gitlab::SidekiqVersioning::Worker

#job_version

Methods included from WorkerContext

#with_context

Instance Method Details

#performObject


14
15
16
17
18
# File 'app/workers/authorized_project_update/periodic_recalculate_worker.rb', line 14

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