Answer the question
In order to leave comments, you need to log in
Is it possible to get a list of running tasks and tasks in the queue from ProcessPoolExecutor?
from concurrent.futures import ProcessPoolExecutor
executor = ProcessPoolExecutor(max_workers=90)
def worker(p):
#много кода
dataset = [................................................] #большой список
for data in dataset:
future = executor.submit(worker, data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question