How to raise timeout threshold in Python SDK for analytics_query

Ok with an assist from some vague node sdk documentation and a fortunate guess as to the param name, I got this to work, not on a per query basis (which would be best) but as a global client setting, which is acceptable.

You can pass the config option into the connection string in the Cluster.connect method (and I’m guessing also into its constructor)

Here’s an example:

cluster = Cluster.connect(‘couchbase://{}?analytics_timeout=1000’.format(‘1.1.1.90’))

This was waaaaaay harder than it should have been.