2020-09-11 09:08:44 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CiPlatformMetricsUpdateCronWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2020-09-11 09:08:44 +00:00
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :continuous_integration
|
|
|
|
urgency :low
|
|
|
|
worker_resource_boundary :cpu
|
|
|
|
|
|
|
|
def perform
|
|
|
|
CiPlatformMetric.insert_auto_devops_platform_targets!
|
|
|
|
end
|
|
|
|
end
|