SwarmOps
ReferenceCommandsswarmops queue enqueue

Page kind: Reference

swarmops queue enqueue#

Describes v0.13.0Last changed View as Markdown

Put a change in REF's landing queue, and start its runner.

The change is HEAD with its first-parent chain since --base. The entry is durable when this answers; a runner then checks and lands it, with no other command. A store before format 3 is E_FORMAT_REQUIRED, a change REF holds already E_NOTHING_TO_LAND, and a REF whose head names no check E_INVALID_ARG (details.missing: check).

Metadata
Group
queue
Since
0.13.0
Mutates
yes
Identity required
yes
Envelope op
queue_enqueue
Exit codes
0
Errors
none

Syntax#

Syntax
swarmops queue enqueue [OPTIONS] --head <REV> <REF>

Required arguments#

Syntax: <REF>.

The ref to land on, which must exist.

Syntax: --head <REV>.

The change's head.

Optional arguments#

The command also takes the global options.

Syntax: --base <REV>.

Where the change starts: a first-parent ancestor of --head (default: the merge base of --head and REF's head).

Syntax: --key <KEY>.

Make a retry safe, at most 128 bytes: the same key with the same change answers the entry it made (replayed); with another change, E_INVALID_ARG (key_reused).

Examples#

No recorded example yet.

No recorded example yet.

Return information#

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

FieldTypeRequiredDescription
entryQueueEntryOutyesThe entry.
replayedbooleanyesTrue when the key named an entry already, and nothing was written.

Envelope op: queue_enqueue.

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, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).

See also#

On this page