Open Dev-HexoTech opened 10 months ago
Hello @Dev-HexoTech,
Thank you for using our client and for bringing this issue to our attention. Your feedback is valuable to us.
We are prioritizing a review of the matter you've reported and will take a closer look at it as soon as possible. Please stay tuned for updates as we work to understand and address the issue.
If you have any more information or further insights that could help in our investigation, please feel free to share.
Regards
Hello,
Following up on the issue you reported regarding the incorrect disposal of ThreadPoolScheduler
, we have implemented a fix in our development branch. The details of the fix can be found in this pull request: PR #641.
To ensure that this solution effectively resolves the issue you encountered, we kindly ask if you could verify the fix on your end. You can do so by installing the development version of the client that includes this update. Here's the command to install it:
pip install git+https://github.com/influxdata/influxdb-client-python.git@fix-scheduler
This will allow you to test the changes directly. Your feedback on whether this update addresses the problem as expected would be highly valuable to us.
Thank you very much for your assistance and for helping us improve the quality of our client.
Best regards.
Hello,
Thanks for this fix, but I have a little side effect. The ThreadPoolExecutor is not close after the call of the close method. So wee need to have an arbitrary sleep to wait the close of the thread.
We can see that in my code example. After the stop, the ThreadPoolExecutor is still hir but after the sleep of 5s, the thread is close
Thanks
Specifications
Code sample to reproduce problem
Expected behavior
When we close the batching API, associated threads are closed
Actual behavior
When we close the batching API, the associated thread ThreadPoolExecutor is alway alive
Additional info
My output