more debugging and health checks for services

- log that external services are added (helps catch accidental external services due to missing fields)
- check connectivity of services with web endpoints periodically
This commit is contained in:
Min RK
2017-01-16 15:36:11 +01:00
parent 2effd3da16
commit eb5e755aa6
2 changed files with 51 additions and 7 deletions

View File

@@ -160,6 +160,11 @@ class Service(LoggingConfigurable):
def managed(self):
"""Am I managed by the Hub?"""
return bool(self.command)
@property
def kind(self):
"""Am I managed (as text)"""
return 'managed' if self.managed else 'external'
command = Command(minlen=0,
help="Command to spawn this service, if managed."