blob: 9a3c0c80f851d39ba1c9f37fbe2dbb3ed7ee88f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module Gitlab
module Export
class PruneProjectExportJobsWorker
include ApplicationWorker
# rubocop:disable Scalability/CronWorkerContext
# This worker updates several import states inline and does not schedule
# other jobs. So no context needed
include CronjobQueue
# rubocop:enable Scalability/CronWorkerContext
feature_category :importers
data_consistency :always
idempotent!
def perform
ProjectExportJob.prune_expired_jobs
end
end
end
end
|