(jobId, cb)
| 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 |
no test coverage detected