2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class DeleteUnitTestsWorker
|
|
|
|
include ApplicationWorker
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
data_consistency :always
|
2021-06-08 01:23:25 +05:30
|
|
|
# rubocop:disable Scalability/CronWorkerContext
|
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue
|
|
|
|
# rubocop:enable Scalability/CronWorkerContext
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
feature_category :code_testing
|
2021-06-08 01:23:25 +05:30
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform
|
|
|
|
Ci::DeleteUnitTestsService.new.execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|