Post server started trigger a api

Hi,
I have requirement to call an API once the hub server is started. To avoid the polling of the server everytime.
Could you please tell me the way to make call ?

Thanks
sathish

I think the easiest is to check the /hub/health endpoint, when you receive a HTTP status 200 response the hub should be ready.

I like to publish an event as soon as server is started. If use polling then there will be delay.

I have noticed print statement in the log.

Server palansa:ws1381 is ready

It is possible to append my api call login there ?

JupyterHub supports telemetry and it seems there is a server event defined when single user server has started. Maybe they might give you some pointers.

1 Like