mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-12-23 17:44:24 +00:00
Improve health checks for instances
This commit is contained in:
@@ -11,12 +11,16 @@ export const BackendType = {
|
||||
|
||||
export type BackendTypeValue = typeof BackendType[keyof typeof BackendType]
|
||||
|
||||
export type InstanceStatus = 'running' | 'stopped' | 'failed'
|
||||
export type InstanceStatus = 'running' | 'stopped' | 'failed' | 'restarting'
|
||||
|
||||
export type HealthState = 'stopped' | 'starting' | 'loading' | 'ready' | 'error' | 'failed' | 'restarting'
|
||||
|
||||
export interface HealthStatus {
|
||||
status: 'ok' | 'loading' | 'error' | 'unknown' | 'failed'
|
||||
message?: string
|
||||
state: HealthState
|
||||
instanceStatus: InstanceStatus | 'unknown'
|
||||
lastChecked: Date
|
||||
error?: string
|
||||
source: 'backend' | 'http' | 'error'
|
||||
}
|
||||
|
||||
export interface Instance {
|
||||
|
||||
Reference in New Issue
Block a user