2018-06-27 07:23:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-02-19 18:09:10 +00:00
|
|
|
class RemoveUnreferencedLfsObjectsWorker # rubocop:disable Scalability/IdempotentWorker
|
2017-11-28 16:08:30 +00:00
|
|
|
include ApplicationWorker
|
2020-02-10 12:08:59 +00:00
|
|
|
# rubocop:disable Scalability/CronWorkerContext
|
|
|
|
# This worker does not perform work scoped to a context
|
|
|
|
include CronjobQueue
|
|
|
|
# rubocop:enable Scalability/CronWorkerContext
|
2016-10-28 17:39:20 +00:00
|
|
|
|
2020-02-05 00:08:41 +00:00
|
|
|
feature_category :git_lfs
|
2019-10-18 11:11:44 +00:00
|
|
|
|
2016-10-28 17:39:20 +00:00
|
|
|
def perform
|
|
|
|
LfsObject.destroy_unreferenced
|
|
|
|
end
|
|
|
|
end
|