MCPcopy Create free account
hub / github.com/dadi/api / startBackgroundQueue

Method startBackgroundQueue

dadi/lib/workQueue.js:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 startBackgroundQueue() {
45 this.pollingTimer = setInterval(() => {
46 if (this.foregroundPool.size > 0) {
47 return
48 }
49
50 this.dequeueBackgroundJob()
51 }, this.pollingTime)
52 }
53
54 startForegroundJob() {
55 const key = process.hrtime().join('.')

Callers 1

constructorMethod · 0.95

Calls 1

dequeueBackgroundJobMethod · 0.95

Tested by

no test coverage detected