You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive logging for debugging polling issues
Added detailed logging to diagnose two issues:
1. **Unknown status detection**: When the deployment status shows as
"unknown", we now log the actual stage value received from HuggingFace
and list all known stages. This helps identify if HuggingFace has
introduced new stages we don't recognize yet.
2. **Health check failures**: Override _check_deployment_health with
better logging to show:
- The exact health check URL being tested
- Whether health check passed or failed
- Specific error messages when health check fails
- Status codes returned from the endpoint
These logs will help diagnose why deployments continue polling even
when the Space appears to be running and the health endpoint is working.
The logs now show stage transitions and health check results at INFO
level for easier debugging without requiring DEBUG logging.
0 commit comments