Member Junction
    Preparing search index...

    Discard Work Queue Delivery Resolves one delivery without processing it, with a required reason. A pending or dead-lettered delivery becomes Discarded immediately; discarding a dead-lettered Ordered head unblocks its key. An in-flight delivery is cancelled instead (cancelRequested = true): the running handler is told to stop within one heartbeat interval (30 s at most) and the delivery becomes Discarded as soon as the handler acknowledges, or at lease expiry if its worker is gone. Implemented by WorkQueueDiscardDeliveryServerOperation in @memberjunction/work-queue-engine. GenerationType=Manual — the server body is supplied by a hand-authored subclass registered under 'WorkQueue.DiscardDelivery'. This generated base provides the typed contract only (client-safe).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ExecutionMode: "Sync" = ...

    Whether this operation is a plain Sync request/response or a LongRunning run.

    OperationKey: "WorkQueue.DiscardDelivery"

    Stable registry key and wire token for this operation (e.g. RecordProcess.RunNow).

    RequiredScope: "workqueue:operate"

    Optional API-key scope string (e.g. recordprocess:execute) enforced for API-key / MCP callers by the server resolver. undefined means no scope gate; interactive users remain bounded by their entity permissions. Informational here — the server applies it.

    RequiresSystemUser: false

    When true, the server only permits the system user to invoke this operation.

    Methods

    • Per-operation authorization hook, composed with (and applied after) the framework gates that the server resolver runs. Returns true by default. Override to enforce operation-specific rules against the input and acting user.

      Parameters

      Returns Promise<boolean>

      True if the operation may proceed.