From 074d013e1eb3f6e0c27f96a3be8b9361254c8a98 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 23 Mar 2020 15:09:36 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/workers/namespaces/root_statistics_worker.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/workers/namespaces') 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) -- cgit v1.2.3