Skip to content

Commit

Permalink
dask status
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Sep 20, 2024
1 parent 81e446a commit 40db320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion orochi/api/routers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def dask_status(request):
}
)
dask_client.close()
return sum(len(running_tasks) for running_tasks in res.values())
return DaskStatusOut(
running=sum(len(running_tasks) for running_tasks in res.values())
)


@router.get(
Expand Down
2 changes: 1 addition & 1 deletion orochi/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
},
timeout: 2000
});
}, 60000);
}, 6000);

// ABOUT
$(document).on("click", "#about", function () {
Expand Down

0 comments on commit 40db320

Please sign in to comment.