func (w *Watcher) FailDeployment(req *structs.DeploymentFailRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}

	return watcher.FailDeployment(req, resp)
}
// FailDeployment is used to fail the deployment.
FailDeployment is used to fail the deployment.
// FailDeployment is used to fail the deployment .
func (w *Watcher) FailDeployment(req *structs.DeploymentFailRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}
	return watcher.FailDeployment(req, resp)
}
func ( w * Watcher ) FailDeployment ( req * structs . DeploymentFailRequest , resp * structs . DeploymentUpdateResponse ) error { watcher , err := w . getOrCreateWatcher ( req . DeploymentID ) if err != nil { return err } return watcher . FailDeployment ( req , resp ) }
FailDeployment is used to fail the deployment.
FailDeployment is used to fail the deployment .