mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] take into account failed jobs
This commit is contained in:
parent
792ce1ad22
commit
fa0c060479
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue