MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Kill

Method Kill

cmd/cql-proxy/task/task.go:115–120  ·  view source on GitHub ↗

Kill terminated specified task.

(id int64)

Source from the content-addressed store, hash-verified

113
114// Kill terminated specified task.
115func (m *Manager) Kill(id int64) {
116 select {
117 case m.killCh <- id:
118 case <-m.ctx.Done():
119 }
120}
121
122// Wait waits task for completion or wait timeout.
123func (m *Manager) Wait(ctx context.Context, id int64) (err error) {

Callers 1

cancelTaskFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected