()
| 754 | } |
| 755 | |
| 756 | _doStalledJobCheck() { |
| 757 | return this._evalScript( |
| 758 | 'checkStalledJobs', |
| 759 | 4, |
| 760 | this.toKey('stallBlock'), |
| 761 | this.toKey('stalling'), |
| 762 | this.toKey('waiting'), |
| 763 | this.toKey('active'), |
| 764 | this.settings.stallInterval |
| 765 | ).then((stalled) => { |
| 766 | for (const jobId of stalled) { |
| 767 | this.emit('stalled', jobId); |
| 768 | } |
| 769 | return stalled.length; |
| 770 | }); |
| 771 | } |
| 772 | |
| 773 | _safeCheckStalledJobs(interval, cb) { |
| 774 | const promise = this._checkStalledJobs(interval, cb); |
no test coverage detected