Skip to content

Add health check for SAS app readiness#415

Merged
yonghaoy merged 1 commit into
masterfrom
sas-healthcheck
May 19, 2026
Merged

Add health check for SAS app readiness#415
yonghaoy merged 1 commit into
masterfrom
sas-healthcheck

Conversation

@yonghaoy
Copy link
Copy Markdown
Contributor

@yonghaoy yonghaoy commented May 18, 2026

Summary

  • Add Docker HEALTHCHECK to the SAS Dockerfile that polls http://localhost:7080/SASStudio/ (5s interval, 60s start period)
  • Update probe-proxy-readiness.sh to check container health status — requires healthy before marking startup_script/status=COMPLETE
  • Containers without a HEALTHCHECK (health status none) are unaffected

Problem

The readiness probe only checks if docker containers are running, but SAS Studio takes ~40s to initialize inside the container. This causes the UI to show "Running" and enable the "Open" button while SAS Studio returns 503.

Test plan

  • Deploy SAS app in dev and verify UI stays in "Starting" state until SAS Studio is ready
  • Verify non-SAS apps (jupyter, vscode) are unaffected (health status none passes through)
  • Verify SAS app transitions to "Running" once healthy

🤖 Generated with Claude Code

PHP-151121

The readiness probe (probe-proxy-readiness.sh) only checks if docker
containers are running, but SAS Studio takes ~40s to initialize inside
the container. This causes the UI to show "Running" while the app
returns 503.

Add a Docker HEALTHCHECK to the SAS Dockerfile that polls SAS Studio on
port 7080, and update the readiness probe to wait for "healthy" status
before marking startup_script/status=COMPLETE. Containers without a
HEALTHCHECK (status "none") pass through unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yonghaoy yonghaoy requested review from a team as code owners May 18, 2026 22:49
@yonghaoy yonghaoy requested a review from june-hua May 18, 2026 22:50
@yonghaoy yonghaoy merged commit 13b8999 into master May 19, 2026
28 of 34 checks passed
@yonghaoy yonghaoy deleted the sas-healthcheck branch May 19, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants