# swarmops queue run

> Release: 0.13.0 · Last changed: 2026-11-29 · Source: https://github.com/KeiaiLab/SwarmOps/blob/stable/docs/reference/commands/queue-run.md

Run REF's queue until it holds no open entry; exit 0 at once when another runner does.

enqueue, wait and the other queue commands start this when a queue has work and no runner: it needs no other driver. It answers the queue as it left it.

```yaml
title: "swarmops queue run"
description: "Run REF's queue until it holds no open entry; exit 0 at once when another runner does."
group: "queue"
since: "0.13.0"
mutates: true
identity_required: false
mcp_tool: ""
envelope_op: "queue_run"
exit_codes: [0]
errors: []
syntax: "swarmops queue run [OPTIONS] <REF>"
```

## Syntax

```text
swarmops queue run [OPTIONS] <REF>
```

## Required arguments

### `REF`

Syntax: `<REF>`.

The ref whose queue it runs.

## Optional arguments

The command also takes the [global options](../cli.md#global-options).

### `--inflight`

Syntax: `--inflight <N>`.
Default: `4`.

How many candidates it checks at once: 1 to 32.

### `--check-timeout`

Syntax: `--check-timeout <S>`.
Default: `900`.

How long one check may run, in seconds.

## Examples

### CLI

No recorded example yet.

## Return information

`result` is a `QueueStatusResp` (`swarmops schema QueueStatusResp` prints its JSON Schema).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `entries` | `array of QueueEntryOut` | yes | The entries. |
| `warnings` | `array of string` | no | Problems found after a publish of `queue run` became durable, such as a signed chain's external id entries not written; the publish itself succeeded. Filled only by `queue run`, from every publish of the run; omitted when empty. |

Envelope `op`: `queue_run`.

Exit codes:

- `0`: Success.

## Errors

No golden step shows this command failing yet.

Any command that opens a store may also fail with a store error, such as [`E_NOT_A_REPO`](../errors.md#e_not_a_repo), [`E_IO`](../errors.md#e_io) or [`E_STORE_CORRUPT`](../errors.md#e_store_corrupt); a command line the grammar refuses is [`E_INVALID_ARG`](../errors.md#e_invalid_arg) (exit 2).

## See also

- [`swarmops queue enqueue`](queue-enqueue.md)
- [`swarmops queue status`](queue-status.md)
- [`swarmops queue withdraw`](queue-withdraw.md)
- [`swarmops queue wait`](queue-wait.md)
- [CLI reference](../cli.md)
- [Error codes](../errors.md)
