🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
How to disable TTL (Time to live) using solace-pubsubplus python library
I am following the sample programs present on this official repo of Solace.
https://github.com/SolaceSamples/solace-samples-python/tree/master/samples
The publication and subscription of messages are working, its just that I want the messages to be published with TTL set to False.
I am not able to find any documentation or an example to set the TTL to False in python.
I am facing error on a solace ingestor stating - Respect TTL mismatch. (RESPECT_TTL mismatch, expected=false)
Answers
-
Hi, the default for
PERSISTENT_TIME_TO_LIVE
is0
meaning that it doesn't expire and therefore is the equivalent tofalse
. Are you observing something different in your testing? Also, you could turn TTL off completely in the Queue by settingrespect TTL
to false in the queue config.1 -
Enabling "Respect TTL" in the settings of solace queue through UI made everything worked out perfectly fine.
Thank you very much @amackenzie for the help!0