mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Merge pull request #34 from weex/clear-end-time
Clear end time when starting to run job
This commit is contained in:
commit
325e02c981
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