blob: d8e52202841de931eb3778f42675c9835fff2e7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
module Packages
class MarkPackageFilesForDestructionWorker
include ApplicationWorker
data_consistency :sticky
queue_namespace :package_cleanup
feature_category :package_registry
urgency :low
deduplicate :until_executing, including_scheduled: true
idempotent!
sidekiq_options retry: 3
def perform(package_id)
package = ::Packages::Package.find_by_id(package_id)
return unless package
::Packages::MarkPackageFilesForDestructionService.new(package.package_files)
.execute
end
end
end
|