MCPcopy
hub / github.com/netdata/netdata / newKeyScheduler

Function newKeyScheduler

src/go/plugin/framework/functions/scheduler.go:41–49  ·  view source on GitHub ↗
(maxPending int)

Source from the content-addressed store, hash-verified

39}
40
41func newKeyScheduler(maxPending int) *keyScheduler {
42 s := &keyScheduler{
43 lanes: make(map[string]*scheduleLane),
44 maxPending: maxPending,
45 accepting: true,
46 }
47 s.cond = sync.NewCond(&s.mux)
48 return s
49}
50
51func (s *keyScheduler) enqueue(req *invocationRequest) error {
52 if req == nil || req.fn == nil || req.fn.UID == "" || req.scheduleKey == "" {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…