# Pausing queues

BullMQ supports pausing queues *globally* or *locally*. When a queue is paused *globally* no workers will pick up any jobs from the queue. When you pause a queue, the workers that are currently busy processing a job will continue working on that job until it completes (or fails), and then will keep idling until the queue is unpaused.

Pausing a queue is performed by calling the ***`pause`*** method on a [queue](https://api.docs.bullmq.io/classes/v5.Queue.html) instance:

```typescript
await myQueue.pause();
```

It is also possible to *locally* pause a given worker instance. This pause works in a similar way as the global pause in the sense that the worker will conclude processing the jobs it has already started but will not process any new ones:

```typescript
await myWorker.pause();
```

The call above will wait for all the jobs currently being processed by this worker to complete (or fail). If you do not want to wait for current jobs to complete before the call completes you can pass `true` to pause the worker **ignoring any running jobs**:

```typescript
await myWorker.pause(true);
```

## Read more:

* 💡 [Pause Queue API Reference](https://api.docs.bullmq.io/classes/v5.Queue.html#pause)
* 💡 [Pause Worker API Reference](https://api.docs.bullmq.io/classes/v5.Worker.html#pause)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bullmq.io/guide/workers/pausing-queues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
