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

Method getJob

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

Source from the content-addressed store, hash-verified

458 }
459
460 getJob(jobId, cb) {
461 const promise = this._commandable()
462 .then(() =>
463 this.jobs.has(jobId) ? this.jobs.get(jobId) : Job.fromId(this, jobId)
464 )
465 .then((job) => {
466 if (job && this.settings.storeJobs) {
467 this.jobs.set(jobId, job);
468 }
469 return job;
470 });
471
472 if (cb) helpers.asCallback(promise, cb);
473 return promise;
474 }
475
476 removeJob(jobId, cb) {
477 const promise = this._evalScript(

Callers 1

queue-test.jsFile · 0.80

Calls 2

_commandableMethod · 0.95
fromIdMethod · 0.80

Tested by

no test coverage detected