Commit 4fca1206 authored by Felix Seibert's avatar Felix Seibert
Browse files

removing redundant wait loop

parent 14be265d
......@@ -86,12 +86,6 @@ def run_commands(commands, max_processes=200, print_errors=True):
for finished_process in difference:
del running_processes_map[finished_process]
# for p in running_processes:
for p in running_processes_map:
p.wait()
num_finished += 1
print("progress: " + str(num_finished) + "/" + str(num_total))
# for finished_process in running_processes:
for finished_process in running_processes_map:
# try:
......@@ -105,6 +99,9 @@ def run_commands(commands, max_processes=200, print_errors=True):
if print_errors:
print_error(finished_process)
num_finished += 1
print("progress: " + str(num_finished) + "/" + str(num_total))
return errored_processes
# return list(map(lambda proc: (proc.args, proc.communicate(), proc.returncode), all_processes))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment