wakaq
Version:
Background task queue for Node backed by Redis, a super minimal Celery
25 lines (24 loc) • 785 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PreventTaskExecution = exports.SoftTimeout = exports.WakaQError = void 0;
class WakaQError extends Error {
constructor(msg) {
super(msg);
Object.setPrototypeOf(this, WakaQError.prototype);
}
}
exports.WakaQError = WakaQError;
class SoftTimeout extends WakaQError {
constructor(msg = 'soft timeout') {
super(msg);
Object.setPrototypeOf(this, SoftTimeout.prototype);
}
}
exports.SoftTimeout = SoftTimeout;
class PreventTaskExecution extends WakaQError {
constructor(msg = 'prevent task execution') {
super(msg);
Object.setPrototypeOf(this, PreventTaskExecution.prototype);
}
}
exports.PreventTaskExecution = PreventTaskExecution;