phalcon/cphalcon · error · Phalcon\Queue\Exceptions\TimeToLiveNotSupportedException
The transport does not support a message time to live
Error message
The transport does not support a message time to live
What it means
Capability guard in AbstractProducer::setTimeToLive(): the concrete transport does not support message expiry (TTL), but a non-null timeToLive was requested. Messages sent via this transport never expire on their own.
Solutions
- Skip setTimeToLive() or pass null for this transport
- Choose a transport that supports TTL/expiry natively
- Add an expiry timestamp in the message body and let consumers discard expired messages
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:76 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/a6f891acd0c6bb0f.
Report an issue: GitHub.
Appendix: source
Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:76
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)