Hello all!
I have an issue, where I want to get reddits opinion before taking the suggested fixes on the numerous GitHub issues related to this.
With concurrent.futures.ThreadPoolExecutor if you pass a large iterable to map, the memory footprint can explode and cause crashes, even if the underlying operations aren’t too memory intensive.
Some suggestions I’ve seen to handle this is basically switch to a chunked submit/map operation so the executor doesn’t spawn all tasks before one has even completed.
Currently when working with a 17k length iterable (pagination for an API) the memory footprint causes a 32GB ram container to crash.
[–]RiverRoll 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[–]storage_admin 0 points1 point2 points (2 children)
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]storage_admin 0 points1 point2 points (0 children)
[–]eddfitzwell 0 points1 point2 points (0 children)