diff options
Diffstat (limited to 'app/workers/pages_update_configuration_worker.rb')
-rw-r--r-- | app/workers/pages_update_configuration_worker.rb | 6 |
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 |