Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
a5d0efdf
Commit
a5d0efdf
authored
Mar 16, 2018
by
Felix Seibert
Browse files
fixing error
parent
fd7dc3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/div_util.py
View file @
a5d0efdf
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment