MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / hasTransitionalInstance

Function hasTransitionalInstance

tui/status.go:116–124  ·  view source on GitHub ↗
(instances []api.Instance)

Source from the content-addressed store, hash-verified

114}
115
116func hasTransitionalInstance(instances []api.Instance) bool {
117 for _, inst := range instances {
118 switch inst.Status {
119 case "PROVISIONING", "RESTORING", "MIGRATING", "STARTING", "STAGING", "PENDING", "QUEUED", "UNKNOWN":
120 return true
121 }
122 }
123 return false
124}
125
126func nextInstancePollDelay(transitionAge time.Duration) time.Duration {
127 switch {

Callers 2

newStatusModelFunction · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected