Commit 5b995566 authored by Daniele Venzano's avatar Daniele Venzano

Fix apps stuck in cleaning up status after an error

parent 9de5aeeb
......@@ -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)
......
Markdown is supported
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