Class: Deployments::SuccessWorker
- Inherits:
-
Object
- Object
- Deployments::SuccessWorker
- Includes:
- ApplicationWorker
- Defined in:
- app/workers/deployments/success_worker.rb
Overview
rubocop:disable Scalability/IdempotentWorker
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY
Constants included from WorkerAttributes
WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#perform(deployment_id) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/workers/deployments/success_worker.rb', line 11 def perform(deployment_id) Deployment.find_by_id(deployment_id).try do |deployment| break unless deployment.success? Deployments::AfterCreateService.new(deployment).execute end end |