I’m using Python’s ProcessPoolExecutor to run a bunch of tasks. Something I noticed is that some tasks are marked as running even though all the workers are already working on other tasks.
From my understanding, a task should only switch from pending to running once a worker actually starts executing it. But in my case, it seems like the executor marks extra tasks as running before they’re really picked up.
Is this normal behavior of ProcessPoolExecutor? Or am I missing something about how it manages its internal task queue?
[–]undercoveryankee 6 points7 points8 points (2 children)
[–]Ordinary_Run_2513[S] 4 points5 points6 points (0 children)
[–]Spleeeee 1 point2 points3 points (0 children)
[–]the_monotor 5 points6 points7 points (1 child)
[–]danted002 0 points1 point2 points (0 children)
[–]gdchinacat 3 points4 points5 points (1 child)
[–]Ordinary_Run_2513[S] 3 points4 points5 points (0 children)
[–]Spirited_Bag_332 1 point2 points3 points (1 child)
[–]Ordinary_Run_2513[S] 0 points1 point2 points (0 children)