From 40db320206c515d2668a71fd93ea137877818f9c Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Fri, 20 Sep 2024 13:47:28 +0200 Subject: [PATCH] dask status --- orochi/api/routers/utils.py | 4 +++- orochi/templates/base.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/orochi/api/routers/utils.py b/orochi/api/routers/utils.py index 3067b3f5..1f82c31c 100644 --- a/orochi/api/routers/utils.py +++ b/orochi/api/routers/utils.py @@ -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( diff --git a/orochi/templates/base.html b/orochi/templates/base.html index a75466bb..29130d53 100644 --- a/orochi/templates/base.html +++ b/orochi/templates/base.html @@ -262,7 +262,7 @@ }, timeout: 2000 }); - }, 60000); + }, 6000); // ABOUT $(document).on("click", "#about", function () {