> ## Documentation Index
> Fetch the complete documentation index at: https://www.qovery.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment stuck on Queued

> A Qovery deployment stays in the Queued status and never starts building. Find what it waits for in the deployment history, cancel what blocks it, and avoid long queues.

You deploy a service, and its deployment status stays on:

```text theme={null}
QUEUED
```

for a long time, without moving to `BUILDING` or `DEPLOYING`. Deploying again does not help.

## What Queued means

`QUEUED` means the deployment request is accepted and waits for its turn. Qovery processes one deployment action at a time per environment. A new request waits while another deployment of the same environment is running, and starts when that one ends. See [Queueing and merging](https://www.qovery.com/docs/configuration/deployment/actions.md#queueing-and-merging).

So a deployment that stays queued is almost always waiting for another one: a long build, a deployment stuck on a step, or a chain of requests in front of it.

## Find what the deployment waits for

**1. Open the deployment history**

Open the environment and go to its **Deployments** tab. See [Deployment History](https://www.qovery.com/docs/configuration/deployment/history.md). Look for a deployment in progress above your queued one, and for other queued requests.

**2. Check the running deployment**

Open the logs of the running deployment. A build that takes very long, a service that never becomes healthy, or a Helm release that waits for its pods will hold the queue until it finishes or times out.

**3. Count the queued requests**

With auto-deploy, each push to the branch creates a deployment request. Many pushes in a short time, with long builds, create a queue. Requests from the same user with the same action are merged, but requests from different users or actions are not.

## Unblock the queue

Cancel the deployment that blocks the queue, or the queued requests you no longer need. In the deployment history, click the cancel icon next to the deployment. Deployments in **Queued** or **In Progress** status can be cancelled.

From the CLI, after selecting the organization and project with `qovery context set` (or with `--organization` and `--project`):

```bash theme={null}
qovery environment cancel --environment "<environment-name>" --watch
```

To force the cancellation, add `--force`. With the API, call `POST /environment/{environmentId}/cancelDeployment`.

Once the queue is empty, deploy the service again. Cancelling a deployment in the middle can leave some services partly updated, so redeploy the environment if several services were involved.

> [!WARNING]
>
> For lifecycle jobs, the Console asks you to confirm a forced cancellation, because the job may already have made changes (for example a database migration).

## Avoid long queues

* Fix the deployment that blocks: a service that fails its health checks keeps the deployment running until the timeout. See [Health checks](https://www.qovery.com/docs/configuration/service-health-checks.md).
* Make builds faster so each deployment holds the queue for less time. Build parallelism and resources are described in [Deployment pipeline](https://www.qovery.com/docs/configuration/deployment/pipeline.md).
* Use [deployment restrictions](https://www.qovery.com/docs/configuration/application.md#deployment-restrictions) on file paths so that a push only deploys the services it changes.
* If you push often to the same branch, deploy from a branch that receives merged changes, not every commit.

If a deployment stays queued while the deployment history shows nothing running, contact support with the environment URL: the request may be stuck on the Qovery side.

## Still stuck?

Contact Qovery support from the Console: click the help button at the bottom right, then **Contact Support**. You can also post in your dedicated Slack channel. Include the Console URL of the service, the deployment ID or the time of the error, and the error line from the logs. See [Help and Support](https://www.qovery.com/docs/getting-started/useful-resources/help-and-support.md).


## Related topics

- [Troubleshooting](https://www.qovery.com/docs/getting-started/troubleshoot/overview.md)
- [Deploy JupyterHub using Helm](https://www.qovery.com/docs/getting-started/guides/advanced-tutorials/deploy-jupyterhub.md)
- [Deployment Actions](https://www.qovery.com/docs/configuration/deployment/actions.md)
- [Get Deployment Status By DeploymentRequestId](https://www.qovery.com/docs/api-reference/get-deployment-status-by-deploymentrequestid.md)
- [List environment deployments](https://www.qovery.com/docs/api-reference/environment-deployment-history/list-environment-deployments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.