phalcon/cphalcon · error · Phalcon\Queue\Exceptions\DeliveryDelayNotSupportedException

The transport does not support a delivery delay

Error message

The transport does not support a delivery delay

What it means

Capability guard in AbstractProducer::setDeliveryDelay(): the concrete transport producer does not implement delayed delivery, yet a non-null deliveryDelay was requested. The base producer advertises the ProducerInterface API but each transport only supports the features it can actually honor.

Solutions

  1. Do not call setDeliveryDelay() with a non-null value on this transport
  2. Use a transport that supports delayed delivery (e.g. one with native delayed/scheduled messages)
  3. Schedule delivery at the application level, e.g. enqueue with a visible-at timestamp stored in the message payload
  4. Call setDeliveryDelay(null) explicitly if your code path only optionally sets a delay
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:58 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/b43713be4737f1a5. Report an issue: GitHub.

Appendix: source

Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:58

        return null;
    }

    public function getPriority() -> int | null
    {
        return null;
    }

    public function getTimeToLive() -> int | null
    {
        return null;
    }

    abstract public function send(<DestinationInterface> destination, <MessageInterface> message) -> void;

    public function setDeliveryDelay(var deliveryDelay = null) -> <ProducerInterface>
    {
        if unlikely deliveryDelay !== null {
            throw new DeliveryDelayNotSupportedException();
        }

        return this;
    }

    public function setPriority(var priority = null) -> <ProducerInterface>
    {
        if unlikely priority !== null {
            throw new PriorityNotSupportedException();
        }

        return this;
    }

    public function setTimeToLive(var timeToLive = null) -> <ProducerInterface>
    {
        if unlikely timeToLive !== null {
            throw new TimeToLiveNotSupportedException();

View on GitHub (pinned to b7419de9cd)