- Notifications
You must be signed in to change notification settings - Fork186
Open
Description
Hello,
Specifications
- Client Version: 1.41.0
- InfluxDB Version: 2.7.5
- Platform: Ubuntu 23.10
Code sample to reproduce problem
importatexitfrominfluxdb_clientimportInfluxDBClient,Pointinfluxdb=InfluxDBClient(url="...",token="...",org="...")write_api=influxdb.write_api()@atexit.registerdefclose():print("closing")write_api.close()influxdb.close()write_api.write("<bucket>",record=Point("test_bf").field("test",1))
Expected behavior
Expected output:
closing
Actual behavior
Actual output:
The batch item wasn't processed successfully because: cannot schedule new futures after interpreter shutdownclosing
As you can see theatexit
handler is executed, but the error happens before.
Additional info
No response