# swarmops queue wait

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

Wait for entry ID to land, starting its runner when none runs.

A landed entry answers; a removed one is its removal's error (details.reason): a failed or timed-out check is E\_CHECK\_FAILED, a conflict E\_CONFLICT, a deleted ref E\_REF\_NOT\_FOUND, a withdrawal E\_NOTHING\_TO\_LAND. An entry still open at --timeout is E\_QUEUE\_WAIT\_TIMEOUT (exit 4): it stays queued.

```yaml
title: "swarmops queue wait"
description: "Wait for entry ID to land, starting its runner when none runs."
group: "queue"
since: "0.13.0"
mutates: false
identity_required: false
mcp_tool: "queue_wait"
envelope_op: "queue_wait"
exit_codes: [0]
errors: []
syntax: "swarmops queue wait [OPTIONS] <ID>"
```

## Syntax

```text
swarmops queue wait [OPTIONS] <ID>
```

## Required arguments

### `ID`

Syntax: `<ID>`.

The entry's id.

## Optional arguments

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

### `--timeout`

Syntax: `--timeout <S>`.

The most seconds to wait (default: until it lands or is removed).

## Examples

### CLI

No recorded example yet.

### MCP

No recorded example yet.

## Return information

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base` | `string` | yes | Where the change starts, a full id. |
| `candidate` | `string or null` | no | The candidate changeset of its latest round: the chain up to it on the target's head. |
| `check` | `string or null` | no | The check a verdict or a removal names. |
| `head` | `string` | yes | The change's head, a full id. |
| `id` | `string` | yes | The entry's id: 64 hex digits. |
| `key` | `string or null` | no | The key it was enqueued with; omitted when none. |
| `landed` | `string or null` | no | The target's changeset that holds its change, once landed. |
| `position` | `integer or null` | no | Its place among the target's open entries, from 1 in enqueue order; omitted once it landed or was removed. |
| `removal` | `RemovalReason or null` | no | Why it was removed, once removed. |
| `report` | `string or null` | no | The blob that holds a removal's report: the conflict report, or the check's output. |
| `state` | `QueueEntryState` | yes | Where it stands. |
| `target` | `string` | yes | The ref it lands on. |
| `tree` | `string or null` | no | The root tree of that candidate, or of the prefix a removal names. |
| `verdict` | `VerdictState or null` | no | The verdict recorded for `tree`; omitted while there is none. |

Envelope `op`: `queue_wait`.

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 run`](queue-run.md)
- [CLI reference](../cli.md)
- [Error codes](../errors.md)
