gitlab-org--gitlab-foss/app/workers/namespaces/update_root_statistics_work...

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