Skip to content

Commit 8769ade

Browse files
authored
Merge pull request #49 from minrk/main
fix type of request_timeout when $JUPYTERHUB_REQUEST_TIMEOUT is set
2 parents 41682e4 + 8cc2390 commit 8769ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyterhub_idle_culler/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def cull_idle(
9797
# GET /users may be slow if there are thousands of users and we
9898
# don't do any server side filtering so default request timeouts
9999
# to 60 seconds rather than tornado's 20 second default.
100-
"request_timeout": os.environ.get("JUPYTERHUB_REQUEST_TIMEOUT", 60)
100+
"request_timeout": int(os.environ.get("JUPYTERHUB_REQUEST_TIMEOUT") or 60)
101101
}
102102
if ssl_enabled:
103103
ssl_context = make_ssl_context(

0 commit comments

Comments
 (0)