diff options
Diffstat (limited to 'app/workers/pages_update_configuration_worker.rb')
-rw-r--r-- | app/workers/pages_update_configuration_worker.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/app/workers/pages_update_configuration_worker.rb b/app/workers/pages_update_configuration_worker.rb index 3dfd82ed517..9c58b40e098 100644 --- a/app/workers/pages_update_configuration_worker.rb +++ b/app/workers/pages_update_configuration_worker.rb @@ -1,25 +1,17 @@ # frozen_string_literal: true +# TODO: remove this in 14.7 https://gitlab.com/gitlab-org/gitlab/-/issues/348582 class PagesUpdateConfigurationWorker include ApplicationWorker data_consistency :always - sidekiq_options retry: 3 + sidekiq_options retry: 1 idempotent! feature_category :pages - def self.perform_async(*args) - return unless ::Settings.pages.local_store.enabled - - super(*args) - end - - def perform(project_id) - project = Project.find_by_id(project_id) - return unless project - - Projects::UpdatePagesConfigurationService.new(project).execute + def perform(_project_id) + # Do nothing end end |