Class: Packages::Debian::GenerateDistributionWorker
- Inherits:
-
Object
- Object
- Packages::Debian::GenerateDistributionWorker
- Includes:
- ApplicationWorker, Gitlab::Utils::StrongMemoize
- Defined in:
- app/workers/packages/debian/generate_distribution_worker.rb
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
Constants included from Gitlab::Loggable
Constants included from WorkerAttributes
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::DEFAULT_DEFER_DELAY, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Gitlab::Loggable
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#perform(container_type, distribution_id) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'app/workers/packages/debian/generate_distribution_worker.rb', line 22 def perform(container_type, distribution_id) @container_type = container_type.to_sym @distribution_id = distribution_id return unless distribution ::Packages::Debian::GenerateDistributionService.new(distribution).execute end |