{"record":{"id":"b43713be4737f1a5","repo":"phalcon/cphalcon","slug":"the-transport-does-not-support-a-delivery-delay","errorCode":null,"errorMessage":"The transport does not support a delivery delay","messagePattern":"The transport does not support a delivery delay","errorType":"exception","errorClass":"Phalcon\\Queue\\Exceptions\\DeliveryDelayNotSupportedException","httpStatus":null,"severity":"error","filePath":"phalcon/Queue/Adapter/AbstractProducer.zep","lineNumber":58,"sourceCode":"        return null;\n    }\n\n    public function getPriority() -> int | null\n    {\n        return null;\n    }\n\n    public function getTimeToLive() -> int | null\n    {\n        return null;\n    }\n\n    abstract public function send(<DestinationInterface> destination, <MessageInterface> message) -> void;\n\n    public function setDeliveryDelay(var deliveryDelay = null) -> <ProducerInterface>\n    {\n        if unlikely deliveryDelay !== null {\n            throw new DeliveryDelayNotSupportedException();\n        }\n\n        return this;\n    }\n\n    public function setPriority(var priority = null) -> <ProducerInterface>\n    {\n        if unlikely priority !== null {\n            throw new PriorityNotSupportedException();\n        }\n\n        return this;\n    }\n\n    public function setTimeToLive(var timeToLive = null) -> <ProducerInterface>\n    {\n        if unlikely timeToLive !== null {\n            throw new TimeToLiveNotSupportedException();","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Queue/Adapter/AbstractProducer.zep#L40-L76","documentation":"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.","triggerScenarios":"Thrown at phalcon/Queue/Adapter/AbstractProducer.zep:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call setDeliveryDelay() with a non-null value on this transport","Use a transport that supports delayed delivery (e.g. one with native delayed/scheduled messages)","Schedule delivery at the application level, e.g. enqueue with a visible-at timestamp stored in the message payload","Call setDeliveryDelay(null) explicitly if your code path only optionally sets a delay"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","contentChangedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}