bullmq 3.5.7 → 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.
@@ -68,7 +68,8 @@ if jobId then
68
68
  jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
69
69
 
70
70
  if jobId and string.sub(jobId, 1, 2) == "0:" then
71
- return { 0, 0, 0, tonumber(string.sub(jobId, 3, #jobId))}
71
+ rcall("LREM", KEYS[2], 1, jobId)
72
+ jobId = nil
72
73
  end
73
74
  end
74
75
 
@@ -190,7 +190,8 @@ if jobId then
190
190
  -- Move again since we just got the marker job.
191
191
  jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
192
192
  if jobId and string.sub(jobId, 1, 2) == "0:" then
193
- return { 0, 0, 0, tonumber(string.sub(jobId, 3, #jobId))}
193
+ rcall("LREM", KEYS[2], 1, jobId)
194
+ jobId = nil
194
195
  end
195
196
  end
196
197
  if jobId then
@@ -1 +1 @@
1
- {"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Mf,CAAC;AACW,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,OAAO;IACP,IAAI,EAAE,CAAC;CACR,CAAC"}
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"}
@@ -68,7 +68,8 @@ if jobId then
68
68
  jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
69
69
 
70
70
  if jobId and string.sub(jobId, 1, 2) == "0:" then
71
- return { 0, 0, 0, tonumber(string.sub(jobId, 3, #jobId))}
71
+ rcall("LREM", KEYS[2], 1, jobId)
72
+ jobId = nil
72
73
  end
73
74
  end
74
75
 
@@ -187,7 +187,8 @@ if jobId then
187
187
  -- Move again since we just got the marker job.
188
188
  jobId = rcall("RPOPLPUSH", KEYS[1], KEYS[2])
189
189
  if jobId and string.sub(jobId, 1, 2) == "0:" then
190
- return { 0, 0, 0, tonumber(string.sub(jobId, 3, #jobId))}
190
+ rcall("LREM", KEYS[2], 1, jobId)
191
+ jobId = nil
191
192
  end
192
193
  end
193
194
  if jobId then
@@ -1 +1 @@
1
- {"version":3,"file":"moveToActive-9.js","sourceRoot":"","sources":["../../../src/scripts/moveToActive-9.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Mf,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,OAAO;IACP,IAAI,EAAE,CAAC;CACR,CAAC"}
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.7",
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",