mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 13:03:01 +00:00
stop_pending also counts as not running
This commit is contained in:
@@ -145,8 +145,8 @@ class User(HasTraits):
|
|||||||
@property
|
@property
|
||||||
def running(self):
|
def running(self):
|
||||||
"""property for whether a user has a running server"""
|
"""property for whether a user has a running server"""
|
||||||
if self.spawn_pending:
|
if self.spawn_pending or self.stop_pending:
|
||||||
return False # server is not running if spawn is still pending
|
return False # server is not running if spawn or stop is still pending
|
||||||
if self.server is None:
|
if self.server is None:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user