Last active
November 24, 2020 16:00
-
-
Save amacal/bf71219fc4da25cff030a4e5ca2f77af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Pool, Queue, Manager | |
manager = Manager() | |
ftpQueue = manager.Queue() | |
jsonQueue = manager.Queue() | |
with Pool(20) as pool: | |
pool.starmap(master, [(name, ..., ftpQueue, jsonQueue) for name in fetch_names()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment