[fix] take into account failed jobs

This commit is contained in:
Laurent Peuch 2018-09-10 04:20:19 +02:00
parent 792ce1ad22
commit fa0c060479

2
run.py
View file

@ -295,7 +295,7 @@ async def run_job(worker, job):
await command.wait()
job.end_time = datetime.now()
job.state = "done"
job.state = "done" if command.returncode == 0 else "failure"
job.save()
# remove ourself from the state