2020-10-13 15:08:53 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class ScheduleDeleteObjectsCronWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
|
|
|
sidekiq_options retry: 3
|
2020-10-13 15:08:53 +00:00
|
|
|
# rubocop:disable Scalability/CronWorkerContext
|
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue
|
|
|
|
# rubocop:enable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :continuous_integration
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(*args)
|
|
|
|
Ci::DeleteObjectsWorker.perform_with_capacity(*args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|