2021-05-18 21:10:16 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class DeleteUnitTestsWorker
|
|
|
|
include ApplicationWorker
|
2021-07-21 12:09:35 +00:00
|
|
|
|
|
|
|
data_consistency :always
|
2021-05-18 21:10:16 +00:00
|
|
|
# rubocop:disable Scalability/CronWorkerContext
|
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue
|
|
|
|
# rubocop:enable Scalability/CronWorkerContext
|
|
|
|
|
2021-10-04 12:11:58 +00:00
|
|
|
feature_category :code_testing
|
2021-05-18 21:10:16 +00:00
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform
|
|
|
|
Ci::DeleteUnitTestsService.new.execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|