Skip to main content

AdapterPoolQueueCancellationOutcome

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects

What happened when a queue entry was asked to be cancelled โ€” DELETE {tenantId}/v1/adapterPool/{adapterPoolRtId}/queue/{executionId}.

public enum AdapterPoolQueueCancellationOutcome

Inheritance Object โ†’ ValueType โ†’ Enum โ†’ AdapterPoolQueueCancellationOutcome
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Remarks:

๐Ÿ”ด is a first-class outcome, not an error. The server answers 409 Conflict for an execution that already holds a lease, because cancelling a queued entry and interrupting a running pipeline are two different operations (concept ยง5, "Cancellation"). Surfacing it as a generic failure would hide from the operator which of the two they just failed to perform โ€” so it travels as its own value and every surface says so.

Fieldsโ€‹

NameValueDescription
Cancelled0The entry was waiting and is now Cancelled. It will never be leased.
AlreadyLeased1The execution already holds a lease (409). Nothing was cancelled. Stopping it means interrupting the running pipeline, which is the other operation.
NotFound2No queued execution with that id belongs to this pool (404) โ€” it never existed here, or it already finished, failed or was cancelled.