mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
clear end time when starting to run job
This commit is contained in:
parent
266bad3ec0
commit
3327427cc3
1 changed files with 1 additions and 0 deletions
1
run.py
1
run.py
|
@ -412,6 +412,7 @@ async def jobs_dispatcher():
|
||||||
|
|
||||||
job.state = "running"
|
job.state = "running"
|
||||||
job.started_time = datetime.now()
|
job.started_time = datetime.now()
|
||||||
|
job.end_time = None
|
||||||
job.save()
|
job.save()
|
||||||
|
|
||||||
worker.state = "busy"
|
worker.state = "busy"
|
||||||
|
|
Loading…
Add table
Reference in a new issue