mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Merge pull request #939 from minrk/service-logs
more debugging and health checks for services
This commit is contained in:
@@ -160,6 +160,15 @@ class Service(LoggingConfigurable):
|
||||
def managed(self):
|
||||
"""Am I managed by the Hub?"""
|
||||
return bool(self.command)
|
||||
|
||||
@property
|
||||
def kind(self):
|
||||
"""The name of the kind of service as a string
|
||||
|
||||
- 'managed' for managed services
|
||||
- 'external' for external services
|
||||
"""
|
||||
return 'managed' if self.managed else 'external'
|
||||
|
||||
command = Command(minlen=0,
|
||||
help="Command to spawn this service, if managed."
|
||||
|
Reference in New Issue
Block a user