Skip to content

futures.as_completed leaks memory #77

Description

@visjedi

I am using your concurrent.futures package. I schedule about 200,000 tasks and execute them on multiple cores using ProcessPoolExecutor. The memory usage explodes because as_completed does not release references to the futures as the tasks are completed.
In my use case, the individual tasks themselves handle images and matrices. So I dont know how I can send you a reproducible minimal example.
However, This seems to be a known fixed bug : https://bugs.python.org/issue27144
Any thoughts on whether this has been backported in this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions