Member Junction
    Preparing search index...
    interface WorkContext {
        Attempt: number;
        DeliveryID: string;
        IsReplay: boolean;
        Log: WorkLogger;
        MaxAttempts: number;
        Signal: AbortSignal;
        SubscriptionName: string;
        Heartbeat(progress?: WorkProgress): Promise<boolean>;
    }
    Index

    Properties

    Attempt: number

    1-based

    DeliveryID: string

    Database: WorkQueueDelivery.ID; SQS: SQS MessageId

    IsReplay: boolean
    MaxAttempts: number
    Signal: AbortSignal

    Aborted with a WorkAbortReason when an operator cancels, the lease is lost, the cap is hit, or the host stops.

    SubscriptionName: string

    Methods

    • Renews the lease and records progress. Resolves false once the lease is lost or the delivery is cancelled (spec 03 §7); the handler must stop. A transient transport failure does not resolve false: it is retried on the next tick while the lease horizon has not passed.

      Parameters

      Returns Promise<boolean>