mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
Update jupyterhub/handlers/base.py
Ah makes sense, I was wandering why the tests fail. Co-authored-by: Georgiana Elena <georgiana.dolocan@gmail.com>
This commit is contained in:
@@ -946,8 +946,8 @@ class BaseHandler(RequestHandler):
|
||||
return
|
||||
# spawn failed, increment count and abort if limit reached
|
||||
SERVER_SPAWN_DURATION_SECONDS.labels(
|
||||
status=ServerSpawnStatus.failure
|
||||
).observe(time.perf_counter() - spawn_start_time)
|
||||
status=ServerSpawnStatus.failure
|
||||
).observe(time.perf_counter() - spawn_start_time)
|
||||
self.settings.setdefault('failure_count', 0)
|
||||
self.settings['failure_count'] += 1
|
||||
failure_count = self.settings['failure_count']
|
||||
|
Reference in New Issue
Block a user