* Check for stalled jobs. * * @param {Number=} interval The interval on which to check for stalled jobs. * This should be set to half the stallInterval setting, to avoid * unnecessary work. * @param {Function=} callback Called with the equivalent of the returned * promise. If
(interval, cb)
| 816 | * function found. |
| 817 | */ |
| 818 | checkStalledJobs(interval, cb) { |
| 819 | if (typeof interval === 'function') { |
| 820 | cb = interval; |
| 821 | interval = null; |
| 822 | } else if (!Number.isSafeInteger(interval)) { |
| 823 | interval = null; |
| 824 | } |
| 825 | return this._checkStalledJobs(interval, cb); |
| 826 | } |
| 827 | |
| 828 | /** |
| 829 | * Save all the provided jobs, without waiting for each job to be created. |
no test coverage detected