influxdata / influxdb-client-python

InfluxDB 2.0 python client
https://influxdb-client.readthedocs.io/en/stable/
MIT License
721 stars 187 forks source link

fix: prevent exceptions in callbacks from causing deadlocks #559

Closed btasker closed 1 year ago

btasker commented 1 year ago

Closes #558

Proposed Changes

Introduces two levels of deadlock protection

The second change involves the introduction of a new WriteOption: max_close_wait. The default is set to 5 minutes, but can be overriden in the same manner as other write options.

Note: in order to allow the failure to be tested safely, pytest-timeout has been added as a test dependency.

Checklist