If we apply a TTL of greater than 30 days while inserting the document, the document will get removed immediately.
result = cbCollection.insert(key, doc, expiry=timedelta(days=40))
As per the documentation, If the absolute value of the expiry is greater than 30 days, it is considered an absolute time stamp.Currently python SDK is not giving an option to pass absolute datetime value to expiry parameter.
I found a workaround for the issue as below.
result = cbCollection.insert(key, doc, expiry=ttl)
if this solution is good, then it will be great to publish this on the below documentation till the SDK provides an option to pass the absolute date or handle this condition within the insert/update/touch function.