bullmq 5.8.1 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/classes/scripts.js +2 -0
- package/dist/cjs/classes/scripts.js.map +1 -1
- package/dist/cjs/commands/{getCountsPerPriority-2.lua → getCountsPerPriority-4.lua} +10 -3
- package/dist/cjs/scripts/getCountsPerPriority-4.js +47 -0
- package/dist/cjs/scripts/getCountsPerPriority-4.js.map +1 -0
- package/dist/cjs/scripts/index.js +1 -1
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/esm/classes/scripts.js +2 -0
- package/dist/esm/classes/scripts.js.map +1 -1
- package/dist/esm/commands/{getCountsPerPriority-2.lua → getCountsPerPriority-4.lua} +10 -3
- package/dist/esm/scripts/getCountsPerPriority-4.js +44 -0
- package/dist/esm/scripts/getCountsPerPriority-4.js.map +1 -0
- package/dist/esm/scripts/index.d.ts +1 -1
- package/dist/esm/scripts/index.js +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/cjs/scripts/getCountsPerPriority-2.js +0 -31
- package/dist/cjs/scripts/getCountsPerPriority-2.js.map +0 -1
- package/dist/esm/scripts/getCountsPerPriority-2.js +0 -28
- package/dist/esm/scripts/getCountsPerPriority-2.js.map +0 -1
- /package/dist/esm/scripts/{getCountsPerPriority-2.d.ts → getCountsPerPriority-4.d.ts} +0 -0
@@ -1,28 +0,0 @@
|
|
1
|
-
const content = `--[[
|
2
|
-
Get counts per provided states
|
3
|
-
Input:
|
4
|
-
KEYS[1] wait key
|
5
|
-
KEYS[2] prioritized key
|
6
|
-
ARGV[1...] priorities
|
7
|
-
]]
|
8
|
-
local rcall = redis.call
|
9
|
-
local results = {}
|
10
|
-
local waitKey = KEYS[1]
|
11
|
-
local prioritizedKey = KEYS[2]
|
12
|
-
for i = 1, #ARGV do
|
13
|
-
local priority = tonumber(ARGV[i])
|
14
|
-
if priority == 0 then
|
15
|
-
results[#results+1] = rcall("LLEN", waitKey)
|
16
|
-
else
|
17
|
-
results[#results+1] = rcall("ZCOUNT", prioritizedKey,
|
18
|
-
priority * 0x100000000, (priority + 1) * 0x100000000 - 1)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
return results
|
22
|
-
`;
|
23
|
-
export const getCountsPerPriority = {
|
24
|
-
name: 'getCountsPerPriority',
|
25
|
-
content,
|
26
|
-
keys: 2,
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=getCountsPerPriority-2.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getCountsPerPriority-2.js","sourceRoot":"","sources":["../../../src/scripts/getCountsPerPriority-2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBf,CAAC;AACF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,sBAAsB;IAC5B,OAAO;IACP,IAAI,EAAE,CAAC;CACR,CAAC"}
|
File without changes
|