MCPcopy
hub / github.com/bee-queue/bee-queue / forceStall

Function forceStall

test/queue-test.js:56–68  ·  view source on GitHub ↗
(queue, {endDelay = 1} = {})

Source from the content-addressed store, hash-verified

54}
55
56async function forceStall(queue, {endDelay = 1} = {}) {
57 // Safety belts.
58 await helpers.delay(1);
59 await queue.checkStalledJobs();
60 await helpers.callAsync((done) =>
61 // This key prevents frequent running of the stall check as that would
62 // cause erroneous stalls, and its removal unblocks the discovery of
63 // stalled jobs.
64 queue.client.del(queue.toKey('stallBlock'), done)
65 );
66 // Safety belts.
67 await helpers.delay(endDelay);
68}
69
70function spitter() {
71 const values = [],

Callers 1

queue-test.jsFile · 0.85

Calls 2

checkStalledJobsMethod · 0.80
toKeyMethod · 0.80

Tested by

no test coverage detected