UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

22 lines 930 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STATE_TRANSITION_RULES = void 0; const index_js_1 = require("../queue-manager/index.js"); exports.STATE_TRANSITION_RULES = { [index_js_1.EQueueOperationalState.ACTIVE]: [ index_js_1.EQueueOperationalState.PAUSED, index_js_1.EQueueOperationalState.LOCKED, index_js_1.EQueueOperationalState.STOPPED, ], [index_js_1.EQueueOperationalState.PAUSED]: [ index_js_1.EQueueOperationalState.ACTIVE, index_js_1.EQueueOperationalState.STOPPED, index_js_1.EQueueOperationalState.LOCKED, ], [index_js_1.EQueueOperationalState.STOPPED]: [index_js_1.EQueueOperationalState.ACTIVE], [index_js_1.EQueueOperationalState.LOCKED]: [ index_js_1.EQueueOperationalState.ACTIVE, index_js_1.EQueueOperationalState.STOPPED, ], }; //# sourceMappingURL=state-transition-rules.js.map