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

Method Stop

workers/cache/tool_cache.go:93–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func (t *toolsUpdater) Stop() error {
94 t.mux.Lock()
95 defer t.mux.Unlock()
96
97 if !t.running {
98 return nil
99 }
100
101 t.running = false
102 close(t.quit)
103
104 return nil
105}
106
107func (t *toolsUpdater) updateTools() error {
108 slog.DebugContext(t.ctx, "updating tools", "last_update", t.lastUpdate, "entity", t.entity.String(), "forge_type", t.entity.Credentials.ForgeType)

Callers 2

giteaUpdateLoopMethod · 0.95
loopMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected