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

The transport does not support message priority

Error message

The transport does not support message priority

What it means

Capability guard in AbstractProducer::setPriority(): the concrete transport does not support message priority levels, but a non-null priority was requested. Priority only works on transports whose broker supports ordered/severity-based queues.

Solutions

  1. Omit setPriority() or pass null when targeting a transport without priority support
  2. Switch to a transport that supports priority (e.g. AMQP with x-max-priority queues)
  3. Encode priority inside the message payload and handle it on the consumer side
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:67 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/c85141e49fd5930a. Report an issue: GitHub.

Appendix: source

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

    {
        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();
        }

        return this;
    }
}

View on GitHub (pinned to b7419de9cd)