Add support for 'shutting_down' state in HealthBadge and health service

This commit is contained in:
2025-10-29 00:09:18 +01:00
parent 77c0e22fd0
commit c340439306
4 changed files with 16 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ export function useInstanceHealth(instanceName: string, instanceStatus: Instance
// Trigger health check when instance status changes to active states
useEffect(() => {
if (instanceStatus === 'running' || instanceStatus === 'restarting') {
if (instanceStatus === 'running' || instanceStatus === 'restarting' || instanceStatus === 'shutting_down') {
healthService.refreshHealth(instanceName).catch(error => {
console.error(`Failed to refresh health for ${instanceName}:`, error)
})