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
7729bc14
Commit
7729bc14
authored
Mar 22, 2018
by
Felix Seibert
Browse files
adding timeoutexpired error handling
parent
4fca1206
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/div_util.py
View file @
7729bc14
...
...
@@ -88,8 +88,11 @@ def run_commands(commands, max_processes=200, print_errors=True):
# for finished_process in running_processes:
for
finished_process
in
running_processes_map
:
# try:
stdout
,
stderr
=
finished_process
.
communicate
(
timeout
=
10
)
try
:
stdout
,
stderr
=
finished_process
.
communicate
(
timeout
=
10
)
except
subprocess
.
TimeoutExpired
:
finished_process
.
kill
()
stdout
,
stderr
=
finished_process
.
communicate
()
finished_process
=
(
finished_process
.
args
,
(
stdout
,
stderr
),
...
...
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