MCPcopy Create free account
hub / github.com/buildkite/agent-stack-k8s / Stop

Method Stop

api/agent_client.go:128–131  ·  view source on GitHub ↗

Ends all internal goroutines and wait for them to finish pending works.

()

Source from the content-addressed store, hash-verified

126
127// Ends all internal goroutines and wait for them to finish pending works.
128func (e *AgentClient) Stop() {
129 e.notificationBatcherCancelFn()
130 e.notificationBatcher.waitDone()
131}
132
133// AgentError is the JSON object of the response body returned when the HTTP
134// status code is not success. It doubles as a Go error.

Callers 5

RunFunction · 0.95
batchCheckerMethod · 0.80
imageFailureCheckerMethod · 0.80
StartMethod · 0.80
startMethod · 0.80

Calls 1

waitDoneMethod · 0.80

Tested by

no test coverage detected