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

Method Wait

runner/pool/pool.go:1777–1791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1775}
1776
1777func (r *basePoolManager) Wait() error {
1778 done := make(chan struct{})
1779 timer := time.NewTimer(60 * time.Second)
1780 go func() {
1781 r.wg.Wait()
1782 timer.Stop()
1783 close(done)
1784 }()
1785 select {
1786 case <-done:
1787 case <-timer.C:
1788 return runnerErrors.NewTimeoutError("waiting for pool to stop")
1789 }
1790 return nil
1791}
1792
1793func (r *basePoolManager) runnerCleanup() (err error) {
1794 slog.DebugContext(

Callers

nothing calls this directly

Calls 2

WaitMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected