push activity to hub via api

servers publish activity on a regular interval (default: 5m)
This commit is contained in:
Min RK
2019-02-11 15:02:09 +01:00
parent 297f6988bd
commit 0063752a7f
4 changed files with 279 additions and 12 deletions

View File

@@ -107,6 +107,8 @@ class _ServiceSpawner(LocalProcessSpawner):
def start(self):
"""Start the process"""
env = self.get_env()
# no activity url for services
env.pop('JUPYTERHUB_ACTIVITY_URL', None)
if os.name == 'nt':
env['SYSTEMROOT'] = os.environ['SYSTEMROOT']
cmd = self.cmd