debian-mirror-gitlab/app/workers/namespaces/update_root_statistics_worker.rb
2022-04-04 11:22:00 +05:30

18 lines
340 B
Ruby

# frozen_string_literal: true
module Namespaces
class UpdateRootStatisticsWorker
include Gitlab::EventStore::Subscriber
data_consistency :always
idempotent!
feature_category :source_code_management
def handle_event(event)
ScheduleAggregationWorker.perform_async(event.data[:namespace_id])
end
end
end