Commit 853a7a51 authored by Daniele Venzano's avatar Daniele Venzano

Fix bug that prevented automatic detection of finished executions.

parent 9585a481
......@@ -177,7 +177,7 @@ class APIEndpoint:
all_execs = self.sql.execution_list(status='running')
for execution in all_execs:
for service in execution.services:
if service.description['monitor'] and service.status == service.BACKEND_DIE_STATUS:
if service.description['monitor'] and service.backend_status == service.BACKEND_DIE_STATUS:
log.info("Service {} ({}) of execution {} died, terminating execution".format(service.id, service.name, execution.id))
self.master.execution_terminate(execution.id)
break
......
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