1# frozen_string_literal: true 2 3module AuthorizedProjectUpdate 4 class PeriodicRecalculateWorker 5 include ApplicationWorker 6 7 data_consistency :always 8 9 # This worker does not perform work scoped to a context 10 include CronjobQueue # rubocop:disable Scalability/CronWorkerContext 11 12 feature_category :source_code_management 13 urgency :low 14 15 idempotent! 16 17 def perform 18 AuthorizedProjectUpdate::PeriodicRecalculateService.new.execute 19 end 20 end 21end 22