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>2021-02-23 21:10:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-23 21:10:40 +0300
commitc37dd28c4afd33fee46cff8ddfdada8a3f54564c (patch)
treec4fb2a3f93338991784cf89b3b1547ab23c1b5e1 /app/workers
parent5ff5047fdc2c614f347de5c388424b50a5460165 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-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