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

Method _safeCheckStalledJobs

lib/queue.js:773–779  ·  view source on GitHub ↗
(interval, cb)

Source from the content-addressed store, hash-verified

771 }
772
773 _safeCheckStalledJobs(interval, cb) {
774 const promise = this._checkStalledJobs(interval, cb);
775 // If a callback is not defined, then we must emit errors to avoid unhandled
776 // rejections. If there is a callback, then _checkStalledJobs will attach it
777 // as an error handler to `promise`.
778 if (!cb) promise.catch(this._emitErrorAfterTick);
779 }
780
781 _scheduleStalledCheck(interval, cb) {
782 if (this.checkTimer || this.paused) return;

Callers 1

_scheduleStalledCheckMethod · 0.95

Calls 1

_checkStalledJobsMethod · 0.95

Tested by

no test coverage detected