mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
Don't double-check _stop_pending flag
could cause spurious raises of Timeout errors
This commit is contained in:
@@ -697,11 +697,8 @@ class BaseHandler(RequestHandler):
|
||||
try:
|
||||
await gen.with_timeout(timedelta(seconds=self.slow_stop_timeout), stop())
|
||||
except gen.TimeoutError:
|
||||
if spawner._stop_pending:
|
||||
# hit timeout, but stop is still pending
|
||||
self.log.warning("User %s:%s server is slow to stop", user.name, name)
|
||||
else:
|
||||
raise
|
||||
# hit timeout, but stop is still pending
|
||||
self.log.warning("User %s:%s server is slow to stop", user.name, name)
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# template rendering
|
||||
|
Reference in New Issue
Block a user