MCPcopy
hub / github.com/bee-queue/bee-queue / checkStalledJobs

Method checkStalledJobs

lib/queue.js:818–826  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 2

forceStallFunction · 0.80
queue-test.jsFile · 0.80

Calls 1

_checkStalledJobsMethod · 0.95

Tested by

no test coverage detected