2020-06-22 15:09:27 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module AuthorizedProjectUpdate
|
|
|
|
class PeriodicRecalculateWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2020-06-22 15:09:27 +00:00
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :source_code_management
|
|
|
|
urgency :low
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform
|
2020-09-25 21:09:51 +00:00
|
|
|
AuthorizedProjectUpdate::PeriodicRecalculateService.new.execute
|
2020-06-22 15:09:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|