bullmq 3.5.6 → 3.5.8
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/commands/moveToActive-9.lua +5 -0
- package/dist/cjs/scripts/moveToActive-9.js +4 -0
- package/dist/cjs/scripts/moveToActive-9.js.map +1 -1
- package/dist/esm/commands/moveToActive-9.lua +5 -0
- package/dist/esm/scripts/moveToActive-9.js +4 -0
- package/dist/esm/scripts/moveToActive-9.js.map +1 -1
- package/package.json +7 -6
@@ -66,6 +66,11 @@ if jobId then
|
|
66
66
|
rcall("LREM", KEYS[2], 1, jobId)
|
67
67
|
-- Move again since we just got the marker job.
|
68
68
|
jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
|
69
|
+
|
70
|
+
if jobId and string.sub(jobId, 1, 2) == "0:" then
|
71
|
+
rcall("LREM", KEYS[2], 1, jobId)
|
72
|
+
jobId = nil
|
73
|
+
end
|
69
74
|
end
|
70
75
|
|
71
76
|
if jobId then
|
@@ -189,6 +189,10 @@ if jobId then
|
|
189
189
|
rcall("LREM", KEYS[2], 1, jobId)
|
190
190
|
-- Move again since we just got the marker job.
|
191
191
|
jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
|
192
|
+
if jobId and string.sub(jobId, 1, 2) == "0:" then
|
193
|
+
rcall("LREM", KEYS[2], 1, jobId)
|
194
|
+
jobId = nil
|
195
|
+
end
|
192
196
|
end
|
193
197
|
if jobId then
|
194
198
|
opts = opts or cmsgpack.unpack(ARGV[4])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG
|
1
|
+
{"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Mf,CAAC;AACW,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,OAAO;IACP,IAAI,EAAE,CAAC;CACR,CAAC"}
|
@@ -66,6 +66,11 @@ if jobId then
|
|
66
66
|
rcall("LREM", KEYS[2], 1, jobId)
|
67
67
|
-- Move again since we just got the marker job.
|
68
68
|
jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
|
69
|
+
|
70
|
+
if jobId and string.sub(jobId, 1, 2) == "0:" then
|
71
|
+
rcall("LREM", KEYS[2], 1, jobId)
|
72
|
+
jobId = nil
|
73
|
+
end
|
69
74
|
end
|
70
75
|
|
71
76
|
if jobId then
|
@@ -186,6 +186,10 @@ if jobId then
|
|
186
186
|
rcall("LREM", KEYS[2], 1, jobId)
|
187
187
|
-- Move again since we just got the marker job.
|
188
188
|
jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
|
189
|
+
if jobId and string.sub(jobId, 1, 2) == "0:" then
|
190
|
+
rcall("LREM", KEYS[2], 1, jobId)
|
191
|
+
jobId = nil
|
192
|
+
end
|
189
193
|
end
|
190
194
|
if jobId then
|
191
195
|
opts = opts or cmsgpack.unpack(ARGV[4])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG
|
1
|
+
{"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Mf,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,OAAO;IACP,IAAI,EAAE,CAAC;CACR,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bullmq",
|
3
|
-
"version": "3.5.
|
3
|
+
"version": "3.5.8",
|
4
4
|
"description": "Queue for messages and jobs based on Redis",
|
5
5
|
"main": "./dist/cjs/index.js",
|
6
6
|
"module": "./dist/esm/index.js",
|
@@ -20,9 +20,11 @@
|
|
20
20
|
],
|
21
21
|
"scripts": {
|
22
22
|
"build": "npm-run-all pretest tsc:all clean:temp:files copy:lua copy:includes:lua",
|
23
|
+
"circular:references": "madge --circular --extensions ts ./src",
|
24
|
+
"clean:scripts": "rimraf rawScripts src/scripts",
|
23
25
|
"clean:temp:files": "rimraf dist/cjs/bullmq.d.ts dist/esm/bullmq.d.ts dist/tsdoc-metadata.json",
|
24
|
-
"copy:lua": "copyfiles -f ./src/commands/*.lua ./dist/cjs/commands && copyfiles -f ./src/commands/*.lua ./dist/esm/commands",
|
25
26
|
"copy:includes:lua": "copyfiles -f ./src/commands/includes/*.lua ./dist/cjs/commands/includes && copyfiles -f ./src/commands/includes/*.lua ./dist/esm/commands/includes",
|
27
|
+
"copy:lua": "copyfiles -f ./src/commands/*.lua ./dist/cjs/commands && copyfiles -f ./src/commands/*.lua ./dist/esm/commands",
|
26
28
|
"coverage": "nyc --reporter=text --reporter=lcovonly yarn test",
|
27
29
|
"cm": "git cz",
|
28
30
|
"docs": "typedoc --excludeExternals --excludeProtected --excludePrivate --readme none src/index.ts",
|
@@ -30,21 +32,20 @@
|
|
30
32
|
"dc:down": "docker-compose -f docker-compose.yml down",
|
31
33
|
"dry-run": "npm publish --dry-run",
|
32
34
|
"eslint:fix": "./node_modules/.bin/eslint . --ignore-path ./.eslintignore --fix",
|
35
|
+
"generate:raw:scripts": "ts-node --project tsconfig-cjs.json generateRawScripts.ts",
|
33
36
|
"lint": "./node_modules/.bin/eslint . --ignore-path ./.eslintignore",
|
34
37
|
"lint:staged": "lint-staged",
|
35
38
|
"prepublishOnly": "yarn build",
|
36
|
-
"generate:raw:scripts": "ts-node --project tsconfig-cjs.json generateRawScripts.ts",
|
37
39
|
"prepare": "husky install",
|
40
|
+
"pretest": "npm-run-all clean:scripts generate:raw:scripts transform:commands",
|
38
41
|
"prettier": "prettier --config package.json src/**/*.ts",
|
39
42
|
"pretty:quick": "pretty-quick --ignore-path ./.eslintignore --staged",
|
40
43
|
"semantic-release": "semantic-release",
|
41
44
|
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
|
42
|
-
"transform:commands": "node ./commandTransform.js ./rawScripts ./src/scripts",
|
43
|
-
"pretest": "npm-run-all generate:raw:scripts transform:commands",
|
44
45
|
"test": "ts-mocha -p tsconfig-cjs.json --config ./.mocharc.js",
|
45
46
|
"test:watch": "ts-mocha -p tsconfig-cjs.json --paths 'tests/test_*.ts' -w --watch-extensions ts",
|
47
|
+
"transform:commands": "node ./commandTransform.js ./rawScripts ./src/scripts",
|
46
48
|
"tsc": "tsc",
|
47
|
-
"circular:references": "madge --circular --extensions ts ./src",
|
48
49
|
"tsc:all": "tsc && tsc -p tsconfig-cjs.json"
|
49
50
|
},
|
50
51
|
"dependencies": {
|