MCPcopy Create free account
hub / github.com/cloudbase/garm / SetPoolRunningState

Method SetPoolRunningState

runner/pool/pool.go:1020–1032  ·  view source on GitHub ↗
(isRunning bool, failureReason string)

Source from the content-addressed store, hash-verified

1018}
1019
1020func (r *basePoolManager) SetPoolRunningState(isRunning bool, failureReason string) {
1021 r.mux.Lock()
1022 r.managerErrorReason = failureReason
1023 r.managerIsRunning = isRunning
1024 updateParams := params.PoolManagerStatus{
1025 IsRunning: isRunning,
1026 FailureReason: failureReason,
1027 }
1028 if err := r.store.SetEntityPoolManagerStatus(r.ctx, r.entity, updateParams); err != nil {
1029 slog.ErrorContext(r.ctx, "failed to set pool manager status", "error", err)
1030 }
1031 r.mux.Unlock()
1032}
1033
1034func (r *basePoolManager) getLabelsForInstance(pool params.Pool) []string {
1035 labels := []string{}

Callers 4

startLoopForFunctionMethod · 0.95
updateToolsMethod · 0.95
StartMethod · 0.95
DeleteRunnerMethod · 0.95

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected