Hello,
Specifications
- Client Version: 1.41.0
- InfluxDB Version: 2.7.5
- Platform: Ubuntu 23.10
Code sample to reproduce problem
import atexit
from influxdb_client import InfluxDBClient, Point
influxdb = InfluxDBClient(url="...", token="...", org="...")
write_api = influxdb.write_api()
@atexit.register
def close():
print("closing")
write_api.close()
influxdb.close()
write_api.write("<bucket>", record=Point("test_bf").field("test", 1))
Expected behavior
Expected output:
Actual behavior
Actual output:
The batch item wasn't processed successfully because: cannot schedule new futures after interpreter shutdown
closing
As you can see the atexit handler is executed, but the error happens before.
Additional info
No response
Hello,
Specifications
Code sample to reproduce problem
Expected behavior
Expected output:
Actual behavior
Actual output:
As you can see the
atexithandler is executed, but the error happens before.Additional info
No response