Function nomad_client::apis::deployments_api::set_allocation_health_in_deployment[][src]

pub async fn set_allocation_health_in_deployment(
    configuration: &Configuration,
    deployment_id: &str,
    deployment_alloc_health_request: Option<DeploymentAllocHealthRequest>
) -> Result<DeploymentUpdateResponse, Error<SetAllocationHealthInDeploymentError>>

In some use cases, automatic detection of allocation health may not be desired. As such those task groups can be marked with an upgrade policy that uses health_check = "manual". Those allocations must have their health marked manually using this endpoint. Marking an allocation as healthy will allow the rolling upgrade to proceed. Marking it as failed will cause the deployment to fail. This endpoint only triggers a rollback if the most recent stable version of the job has a different specification than the job being reverted