From 9432403fd4813a3e1fe14ada6e3e810f19231bb9 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 3 Sep 2018 07:09:03 +0200 Subject: [PATCH] [fix] remove old log of a job on restart --- run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run.py b/run.py index 8489442..de3bc34 100644 --- a/run.py +++ b/run.py @@ -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({