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