Skip to main content
err:unkey:application:deployment_is_stopping
Example

What Happened?

You called stopDeployment on a deployment whose stop is already in progress. A stopping deployment keeps ready status until its last instance is removed, so status alone does not reveal that a stop is underway. getDeployment reflects this through availableActions: a running deployment offers stop, but once a stop is in progress it offers no lifecycle actions at all. start appears only after the deployment has fully reached stopped status.

How To Fix

  1. Fetch the deployment with getDeployment and inspect availableActions.
  2. If the deployment reports status: ready but stop is not listed, a stop is already in progress; wait for it to finish.
  3. Once the deployment reaches stopped, start becomes available; use startDeployment to bring it back.

Common Mistakes

  • Double-stopping: Issuing a second stop while the first is still in progress.
  • Relying on status alone: A deployment can still report ready while it is stopping; use availableActions to see which operations apply.
Last modified on July 20, 2026