21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'app/jobs/uffizzi_core/deployment/deploy_containers_job.rb', line 21
def perform(id, repeated = false)
Rails.logger.info("DEPLOYMENT_PROCESS deployment_id=#{id} DeployContainersJob")
deployment = UffizziCore::Deployment.find(id)
if deployment.disabled?
Rails.logger.info("DEPLOYMENT_PROCESS deployment_id=#{deployment.id} deployment was disabled stop deploying")
return
end
raise UffizziCore::DeploymentNotFoundError, id unless UffizziCore::ControllerService.namespace_exists?(deployment)
UffizziCore::DeploymentService.deploy_containers(deployment, repeated)
end
|