Add healthcheck to JupyterLab module

Adds /api/status healthcheck to prevent the app from showing as ready
before JupyterLab server is fully started and responding.

Fixes: https://github.com/coder/registry/issues/345
This commit is contained in:
blink-so[bot] 2025-08-20 17:18:47 +00:00
parent 29e5307121
commit d52af54d81

View File

@ -79,4 +79,13 @@ resource "coder_app" "jupyterlab" {
share = var.share
order = var.order
group = var.group
}
# Healthcheck ensures JupyterLab is fully ready before showing as available
# Test with: git clone https://github.com/coder/registry.git && cd registry/registry/coder/modules/jupyterlab
# Then use this module in a template to verify the app only appears when JupyterLab is responding
healthcheck {
url = "http://localhost:${var.port}/api/status"
interval = 5
threshold = 6
}
}