amazon-sagemaker-codeserver icon indicating copy to clipboard operation
amazon-sagemaker-codeserver copied to clipboard

👋🏾 Is it possible to find active notebooks and terminals on code-server?

Open vas610 opened this issue 2 years ago • 1 comments
trafficstars

Is there any API that can be used to find notebooks and terminals that are active on the code-server? In that way, it can be used when setting up a lifecycle config for SageMaker Notebook to auto stop when there is not activity.

vas610 avatar Aug 24 '23 19:08 vas610

Hi @vas610, you can try using the healthz endpoint and the heartbeat logic that code-server provides. I suggest reading: https://coder.com/docs/code-server/latest/FAQ#what-is-the-healthz-endpoint

giuseppeporcelli avatar Sep 04 '23 14:09 giuseppeporcelli