Commit a5d0efdf authored by Felix Seibert's avatar Felix Seibert
Browse files

fixing error

parent fd7dc3d9
......@@ -44,11 +44,11 @@ def run_commands(commands, max_processes=200):
difference = set()
for running_process in running_processes:
if running_process.poll() is not None:
difference.add((running_process.args,
difference.add(running_process)
finished_processes.append((running_process.args,
running_process.communicate(),
running_process.returncode))
running_processes = running_processes.difference(difference)
for p in running_processes:
p.wait()
......@@ -58,7 +58,8 @@ def run_commands(commands, max_processes=200):
finished_process.communicate(),
finished_process.returncode))
return list(map(lambda proc: (proc.args, proc.communicate(), proc.returncode), all_processes))
return finished_processes
# return list(map(lambda proc: (proc.args, proc.communicate(), proc.returncode), all_processes))
def print_process_list(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