Class: AuthorizedProjectUpdate::UserRefreshOverUserRangeWorker

Inherits:
Object
  • Object
show all
Includes:
ApplicationWorker
Defined in:
app/workers/authorized_project_update/user_refresh_over_user_range_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

#perform(start_user_id, end_user_id) ⇒ Object


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

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