MCPcopy Create free account
hub / github.com/containerd/nerdctl / WaitForLogger

Function WaitForLogger

pkg/logging/logging.go:184–188  ·  view source on GitHub ↗

WaitForLogger waits until the logger has finished executing and processing container logs

(dataStore, ns, id string)

Source from the content-addressed store, hash-verified

182
183// WaitForLogger waits until the logger has finished executing and processing container logs
184func WaitForLogger(dataStore, ns, id string) error {
185 return filesystem.WithLock(getLockPath(dataStore, ns, id), func() error {
186 return nil
187 })
188}
189
190// alreadyExited returns a channel that immediately reports an exit, used when
191// we have determined that the container's task is already gone.

Callers 1

LogsFunction · 0.92

Calls 2

WithLockFunction · 0.92
getLockPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…