err:unkey:application:deployment_not_runningExample
What Happened?
You calledstopDeployment on a deployment that is not running. Only a deployment in ready status has running instances that can be stopped. A deployment that is still building, failed, was skipped, superseded, or already stopped has nothing to stop.
getDeployment reports the current status, and availableActions omits stop when the deployment is not running.
How To Fix
- Fetch the deployment with
getDeploymentand checkstatus. - Only call
stopwhen the deployment isready. - If the deployment is already stopped, no action is needed.
Common Mistakes
- Stopping a building deployment: Calling
stopbefore the deployment reachesready. - Stopping twice: Calling
stopon a deployment that is already stopped or stopping.
Related Errors
- err:unkey:application:deployment_is_stopping - When a stop is already in flight
- err:unkey:application:deployment_is_production - When the deployment is in production
- err:unkey:application:deployment_not_stopped - When starting a deployment that is not stopped