4 ms·
From the linked Mpire readme: Suppose we want to know the status of the current task: how many tasks are completed, how long before the work is ready?
by Terretta 3y ago
From the linked Mpire readme:
Suppose we want to know the status of the current task: how many tasks are
completed, how long before the work is ready? It's as simple as setting the
progress_bar parameter to True:
with WorkerPool(n_jobs=5) as pool:
results = pool.map(time_consuming_function,
range(10), progress_bar=True)
And it will output a nicely formatted tqdm progress bar.