Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 18:09:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 18:09:36 +0300
commit074d013e1eb3f6e0c27f96a3be8b9361254c8a98 (patch)
treef185c474ddc8624a4793c84b0b1f4cc07349694b /app/workers/namespaces
parent8f9beefac3774b30e911fb00a68f4c7a5244cf27 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/namespaces')
-rw-r--r--app/workers/namespaces/root_statistics_worker.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/namespaces/root_statistics_worker.rb b/app/workers/namespaces/root_statistics_worker.rb
index 70b2510488b..5d4b510ceb7 100644
--- a/app/workers/namespaces/root_statistics_worker.rb
+++ b/app/workers/namespaces/root_statistics_worker.rb
@@ -1,11 +1,12 @@
# frozen_string_literal: true
module Namespaces
- class RootStatisticsWorker # rubocop:disable Scalability/IdempotentWorker
+ class RootStatisticsWorker
include ApplicationWorker
queue_namespace :update_namespace_statistics
feature_category :source_code_management
+ idempotent!
def perform(namespace_id)
namespace = Namespace.find(namespace_id)