MCPcopy Create free account
hub / github.com/netdata/netdata / startInvocation

Method startInvocation

src/go/plugin/framework/functions/manager.go:426–441  ·  view source on GitHub ↗
(uid string)

Source from the content-addressed store, hash-verified

424}
425
426func (m *Manager) startInvocation(uid string) bool {
427 if uid == "" {
428 return false
429 }
430
431 m.invStateMux.Lock()
432 defer m.invStateMux.Unlock()
433
434 rec, ok := m.invState[uid]
435 if !ok || rec == nil || rec.cancelRequested {
436 return false
437 }
438 rec.state = stateRunning
439 m.observeInvocationsLocked()
440 return true
441}
442
443func (m *Manager) handleCancelEvent(event inputEvent) {
444 uid := event.uid

Callers 1

runWorkerMethod · 0.95

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected