blob: 8bb9f76670b8aa9b9abed5710c473b4cc5d737b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
class PagesUpdateConfigurationWorker
include ApplicationWorker
sidekiq_options retry: 3
idempotent!
feature_category :pages
tags :exclude_from_kubernetes
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
end
end
|