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 () {