mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] remove old log of a job on restart
This commit is contained in:
parent
2e2d97cf8f
commit
9432403fd4
1 changed files with 1 additions and 0 deletions
1
run.py
1
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({
|
||||
|
|
Loading…
Add table
Reference in a new issue