# AnyJobQueue interface · @imqueue/job

Source: https://imqueue.org/api/job/latest/job.anyjobqueue/
Published: 2026-07-31
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/job 3.0.3 — generated reference, not hand-written

What every queue in this package can do regardless of which end it is: report its name, expose its logger, and start, stop or tear down its broker connection.

`T` is the implementing type itself, so that `start` and `stop` resolve to the concrete queue and stay chainable.

**Signature:**

```typescript
export interface AnyJobQueue<T> 
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [logger](https://imqueue.org/api/job/latest/job.anyjobqueue.logger/) | `readonly` | ILogger | Logger this queue reports through, either the one supplied in [JobQueueOptions.logger](https://imqueue.org/api/job/latest/job.jobqueueoptions.logger/) or `console`. |
| [name](https://imqueue.org/api/job/latest/job.anyjobqueue.name/) |  | string | Name of this queue, as given in [JobQueueOptions.name](https://imqueue.org/api/job/latest/job.jobqueueoptions.name/). Read-only — a queue cannot be re-pointed after construction. |


## Methods


| Method | Description |
| --- | --- |
| [destroy()](https://imqueue.org/api/job/latest/job.anyjobqueue.destroy/) | Closes the broker connection and releases the queue's resources for good. Unlike [AnyJobQueue.stop()](https://imqueue.org/api/job/latest/job.anyjobqueue.stop/) this is not reversible. |
| [start()](https://imqueue.org/api/job/latest/job.anyjobqueue.start/) | Opens the broker connection and begins processing, resolving to this queue. |
| [stop()](https://imqueue.org/api/job/latest/job.anyjobqueue.stop/) | Stops processing, resolving to this queue. The queue can be started again. |

