Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
5b995566
Commit
5b995566
authored
Oct 24, 2016
by
Daniele Venzano
Browse files
Fix apps stuck in cleaning up status after an error
parent
9de5aeeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_lib/exec_logs.py
View file @
5b995566
...
...
@@ -59,6 +59,9 @@ def save(execution: Execution):
swarm
=
SwarmClient
(
get_conf
())
log_gen
=
swarm
.
logs
(
service
.
docker_id
,
stream
=
True
,
follow
=
False
)
if
log_gen
is
None
:
_shutdown
()
return
with
open
(
fpath
,
'wb'
)
as
fp
:
for
line
in
log_gen
:
fp
.
write
(
line
)
...
...
Write
Preview
Markdown
is supported
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