Setu-TS
    Preparing search index...

    Interface IQueueMessage

    One message delivered to a Queues consumer.

    A real Cloudflare Message satisfies this structurally. ack() and retry() are the platform's only two dispositions: there is no "dead-letter now" call, because that policy lives in the queue's wrangler.toml stanza.

    0.2.0

    interface IQueueMessage {
        attempts: number;
        body: unknown;
        id: string;
        ack(): void;
        retry(options?: { delaySeconds?: number }): void;
    }
    Index
    attempts: number

    Delivery attempt, 1 on first delivery — the same base as IJob.

    body: unknown

    The message body, as the producer sent it.

    id: string

    The platform-assigned message id.

    • Returns the message for redelivery, subject to the queue's configured max_retries and dead-letter queue.

      Parameters

      • Optionaloptions: { delaySeconds?: number }

        Optional redelivery delay

      Returns void