-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclean teardown of multiprocessing pool with Python 3.8 #13
Comments
himani1
changed the title
Unclean tears of multiprocessing pool with Python 3.8
Unclean teardown of multiprocessing pool with Python 3.8
Apr 6, 2021
This may be fixed by #12 Try using the code from https://github.com/timhughes/mgzip/tree/tests |
@timhughes Thanks for the reply. I tried adding the code snippet:
to the finally block of close(), but this doesn't help. The warning is still there. |
If you post a minimal example of code that triggers the error then I can
create a test to try and work it out
…On Tue, 6 Apr 2021, 10:54 Himani Arora, ***@***.***> wrote:
@timhughes <https://github.com/timhughes> Thanks for the reply. I tried
adding the code snippet:
```
if self.mode == WRITE:
self.pool.close()
self.pool.join()
elif self.mode == READ:
self.raw.close()
to the finally block of close(), but this doesn't help. The warning is still there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJFZDYAPD5V7AFY5JW4WNLTHLK45ANCNFSM42OD6FNA>
.
|
Can you try with https://github.com/pgzip/pgzip and if you still have the issue, please raise an issue there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am using mgzip.decompress() to decompress a byte string. Following is the warning that gets generated in the logs while using it:
File "/usr/lib/python3.8/multiprocessing/pool.py", line 265, in del
_warn(f"unclosed running multiprocessing pool {self!r}",
ResourceWarning: unclosed running multiprocessing pool <multiprocessing.pool.ThreadPool state=RUN pool_size=1>
The text was updated successfully, but these errors were encountered: