mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[fix] also include currently running job on index page
This commit is contained in:
parent
6e406eca3f
commit
2b10a70d6d
1 changed files with 3 additions and 1 deletions
4
run.py
4
run.py
|
@ -420,7 +420,9 @@ async def ws_index(request, websocket):
|
|||
|
||||
await websocket.send(ujson.dumps({
|
||||
"action": "init_jobs",
|
||||
"data": itertools.chain(map(model_to_dict, next_scheduled_jobs), map(model_to_dict, latest_done_jobs)),
|
||||
"data": itertools.chain(map(model_to_dict, next_scheduled_jobs),
|
||||
map(model_to_dict, Job.select().where(Job.state == "running")),
|
||||
map(model_to_dict, latest_done_jobs)),
|
||||
}))
|
||||
|
||||
while True:
|
||||
|
|
Loading…
Add table
Reference in a new issue