MCPcopy Index your code
hub / github.com/apache/devlake / Pull

Method Pull

backend/helpers/pluginhelper/api/queue.go:59–68  ·  view source on GitHub ↗

Pull get a node from queue it will add the working count and blocked when there are no node on queue but working count not zero

()

Source from the content-addressed store, hash-verified

57// Pull get a node from queue
58// it will add the working count and blocked when there are no node on queue but working count not zero
59func (q *Queue) Pull() QueueNode {
60 q.mux.Lock()
61 defer q.mux.Unlock()
62 node := q.PullWithOutLock()
63 if node != nil {
64 return node
65 } else {
66 return nil
67 }
68}
69
70func (q *Queue) PullWithWorkingBlock() QueueNode {
71 q.mux.Lock()

Callers 1

FetchMethod · 0.80

Calls 1

PullWithOutLockMethod · 0.95

Tested by

no test coverage detected