Class: ProjectDailyStatisticsWorker
- Inherits:
-
Object
- Object
- ProjectDailyStatisticsWorker
- Includes:
- ApplicationWorker
- Defined in:
- app/workers/project_daily_statistics_worker.rb
Overview
Deprecated: gitlab.com/gitlab-org/gitlab/-/issues/214585
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
Methods included from WorkerContext
Instance Method Details
#perform(project_id) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/workers/project_daily_statistics_worker.rb', line 9 def perform(project_id) project = Project.find_by_id(project_id) return unless project&.repository&.exists? Projects::FetchStatisticsIncrementService.new(project).execute end |