MCPcopy Index your code
hub / github.com/bee-queue/bee-queue / retry

Method retry

lib/job.js:195–210  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

193 }
194
195 retry(cb) {
196 const promise = this.queue
197 ._commandable()
198 .then((client) =>
199 helpers.callAsync((done) =>
200 client
201 .multi()
202 .srem(this.queue.toKey('failed'), this.id)
203 .lpush(this.queue.toKey('waiting'), this.id)
204 .exec(done)
205 )
206 );
207
208 if (cb) helpers.asCallback(promise, cb);
209 return promise;
210 }
211
212 isInSet(set, cb) {
213 const promise = this.queue

Callers 2

queue-test.jsFile · 0.80
job-test.jsFile · 0.80

Calls 2

_commandableMethod · 0.80
toKeyMethod · 0.80

Tested by

no test coverage detected