Skip to content
Advertisement

Tag: opensearch

How to specify timeout on aws opensearch library for python

I am using https://opensearch.org/docs/latest/clients/python/ to interact with an opensearch instance but I need somehow to to extend the lifetime of the request easily. I searched the docs and I couldn’t find a timeout parameter. Is there a way to specify a timeout? Answer You can pass timeout=60 (or whatever) to the OpenSearch object when you create it. This gets passed

Advertisement