diff options
Diffstat (limited to 'app/workers/namespaces/root_statistics_worker.rb')
-rw-r--r-- | app/workers/namespaces/root_statistics_worker.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/namespaces/root_statistics_worker.rb b/app/workers/namespaces/root_statistics_worker.rb index b97dbca2c1c..e1271dae335 100644 --- a/app/workers/namespaces/root_statistics_worker.rb +++ b/app/workers/namespaces/root_statistics_worker.rb @@ -20,8 +20,17 @@ module Namespaces Namespaces::StatisticsRefresherService.new.execute(namespace) namespace.aggregation_schedule.destroy + + notify_storage_usage(namespace) rescue ::Namespaces::StatisticsRefresherService::RefresherError, ActiveRecord::RecordNotFound => ex Gitlab::ErrorTracking.track_exception(ex, namespace_id: namespace_id, namespace: namespace&.full_path) end + + private + + def notify_storage_usage(namespace) + end end end + +Namespaces::RootStatisticsWorker.prepend_mod_with('Namespaces::RootStatisticsWorker') |