[fix] remove old log of a job on restart

This commit is contained in:
Laurent Peuch 2018-09-03 07:09:03 +02:00
parent 2e2d97cf8f
commit 9432403fd4

1
run.py
View file

@ -491,6 +491,7 @@ async def api_restart_job(request, job_id):
# no need to check if job existss, api_stop_job will do it for us
job = Job.select().where(Job.id == job_id)[0]
job.state = "scheduled"
job.log = ""
job.save()
await broadcast({