From c6acb77d8a19063f26f8dfcda85beead50fe6e96 Mon Sep 17 00:00:00 2001 From: Mayra Cabrera Date: Thu, 1 Aug 2019 15:14:21 -0500 Subject: Removes update_statistics_namespace feature flag After measuring the impact of the namespace storage on https://gitlab.com/gitlab-org/gitlab-ce/issues/64092. It was decided that it's performant enough. So we can freely remove the feature flag Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64092 --- app/models/project_statistics.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/models/project_statistics.rb') diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb index 3802d258664..47999a3694e 100644 --- a/app/models/project_statistics.rb +++ b/app/models/project_statistics.rb @@ -93,13 +93,7 @@ class ProjectStatistics < ApplicationRecord def schedule_namespace_aggregation_worker run_after_commit do - next unless schedule_aggregation_worker? - Namespaces::ScheduleAggregationWorker.perform_async(project.namespace_id) end end - - def schedule_aggregation_worker? - Feature.enabled?(:update_statistics_namespace, project&.root_ancestor) - end end -- cgit v1.2.1