Class: Deployments::FinishedWorker
- Inherits:
-
Object
- Object
- Deployments::FinishedWorker
- Includes:
- ApplicationWorker
- Defined in:
- app/workers/deployments/finished_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 |
# File 'app/workers/deployments/finished_worker.rb', line 11 def perform(deployment_id) if (deploy = Deployment.find_by_id(deployment_id)) LinkMergeRequestsService.new(deploy).execute deploy.execute_hooks end end |