Skip to content

Commit b4738ed

Browse files
committed
Instantly redirect to the progress page
@minrk pointed out that the slow redirection to the progress page is related to the hub is waiting for the spawning to complete before it redirects, as that may happen very quickly sometimes. But, on kubernetes and clouds, we won't be able to insta-spawn a pod as we can insta-spawn a process, so always redirecting to the progress page right away makes sense.
1 parent 17914c6 commit b4738ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

images/hub/jupyterhub_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
# Max number of servers that can be spawning at any one time
2929
c.JupyterHub.concurrent_spawn_limit = get_config('hub.concurrent-spawn-limit')
3030

31+
# Don't wait at all before redirecting a spawning user to the progress page
32+
c.JupyterHub.tornado_settings = {
33+
'slow_spawn_timeout': 0,
34+
}
35+
3136
# Max number of consecutive failures before the Hub restarts itself
3237
# requires jupyterhub 0.9.2
3338
c.Spawner.consecutive_failure_limit = get_config('hub.consecutive-failure-limit', 0)

0 commit comments

Comments
 (0)