update.nix: use ThreadPoolExecutor

Not sure why I chose ProcessPoolExecutor in the first place.
This commit is contained in:
Jan Tojnar 2019-04-12 17:46:36 +02:00
parent 441a7da808
commit 5adbeb13c5
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -31,7 +31,7 @@ def main(max_workers, keep_going, packages):
eprint()
eprint('Running update for:')
with concurrent.futures.ProcessPoolExecutor(max_workers=max_workers) as executor:
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
for package in packages:
updates[executor.submit(run_update_script, package)] = package