[kimi] Implement graceful shutdown and health checks (#1397) #1457
Reference in New Issue
Block a user
Delete Branch "kimi/issue-1397"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1397
Summary
Implements production-ready lifecycle management with graceful shutdown and comprehensive health monitoring.
Changes
Health Check Endpoints
/health/detailed- Comprehensive health check with all service statuses (returns 200 for healthy, 503 for degraded/unhealthy)/ready- Readiness probe for Kubernetes/Docker (returns 503 during startup or shutdown)/live- Liveness probe with shutdown awareness (returns 503 after shutdown timeout)/health/shutdown- Debug endpoint for shutdown statusGraceful Shutdown
request_shutdown(),is_shutting_down())Acceptance Criteria
Testing