UNPKG

queuex-sdk

Version:

A TypeScript-based queue management SDK with Redis support

18 lines (17 loc) 725 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QueueStrategy = void 0; /** * Queue processing strategy */ var QueueStrategy; (function (QueueStrategy) { /** First In, First Out - Jobs are processed in the order they were added */ QueueStrategy["FIFO"] = "fifo"; /** Last In, First Out - Most recently added jobs are processed first */ QueueStrategy["LIFO"] = "lifo"; /** Priority-based - Jobs are processed based on their priority level */ QueueStrategy["PRIORITY"] = "priority"; /** Round Robin - Jobs are processed in a circular order */ QueueStrategy["ROUND_ROBIN"] = "round_robin"; })(QueueStrategy || (exports.QueueStrategy = QueueStrategy = {}));