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:
Diffstat (limited to 'app/workers/pages_update_configuration_worker.rb')
-rw-r--r--app/workers/pages_update_configuration_worker.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/workers/pages_update_configuration_worker.rb b/app/workers/pages_update_configuration_worker.rb
index 07238bae8c2..6e82e2099c7 100644
--- a/app/workers/pages_update_configuration_worker.rb
+++ b/app/workers/pages_update_configuration_worker.rb
@@ -6,6 +6,12 @@ class PagesUpdateConfigurationWorker
idempotent!
feature_category :pages
+ def self.perform_async(*args)
+ return unless Feature.enabled?(:pages_update_legacy_storage, default_enabled: true)
+
+ super(*args)
+ end
+
def perform(project_id)
project = Project.find_by_id(project_id)
return unless project