Solace Community is getting a facelift!
On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.
We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!
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