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

Method removeJob

lib/queue.js:476–497  ·  view source on GitHub ↗
(jobId, cb)

Source from the content-addressed store, hash-verified

474 }
475
476 removeJob(jobId, cb) {
477 const promise = this._evalScript(
478 'removeJob',
479 7,
480 this.toKey('succeeded'),
481 this.toKey('failed'),
482 this.toKey('waiting'),
483 this.toKey('active'),
484 this.toKey('stalling'),
485 this.toKey('jobs'),
486 this.toKey('delayed'),
487 jobId
488 ).then(() => {
489 if (this.settings.storeJobs) {
490 this.jobs.delete(jobId);
491 }
492 return this;
493 });
494
495 if (cb) helpers.asCallback(promise, cb);
496 return promise;
497 }
498
499 _waitForJob() {
500 return helpers

Callers 2

removeMethod · 0.80
queue-test.jsFile · 0.80

Calls 2

_evalScriptMethod · 0.95
toKeyMethod · 0.95

Tested by

no test coverage detected