Skip to content

Instantly share code, notes, and snippets.

@amacal
Last active November 24, 2020 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacal/bf71219fc4da25cff030a4e5ca2f77af to your computer and use it in GitHub Desktop.
Save amacal/bf71219fc4da25cff030a4e5ca2f77af to your computer and use it in GitHub Desktop.
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