bullmq 3.5.9 → 3.5.10

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.
@@ -208,7 +208,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- // Make sure job exists
208
208
  if (nextTimestamp ~= nil) then
209
209
  -- The result is guaranteed to be positive, since the
210
210
  -- ZRANGEBYSCORE command would have return a job otherwise.
211
- return {0, 0, 0, nextTimestamp - timestamp}
211
+ return {0, 0, 0, nextTimestamp}
212
212
  end
213
213
  end
214
214
 
@@ -552,7 +552,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- // Make sure job exists
552
552
  if (nextTimestamp ~= nil) then
553
553
  -- The result is guaranteed to be positive, since the
554
554
  -- ZRANGEBYSCORE command would have return a job otherwise.
555
- return {0, 0, 0, nextTimestamp - timestamp}
555
+ return {0, 0, 0, nextTimestamp}
556
556
  end
557
557
  end
558
558
  local waitLen = rcall("LLEN", KEYS[1])
@@ -208,7 +208,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- // Make sure job exists
208
208
  if (nextTimestamp ~= nil) then
209
209
  -- The result is guaranteed to be positive, since the
210
210
  -- ZRANGEBYSCORE command would have return a job otherwise.
211
- return {0, 0, 0, nextTimestamp - timestamp}
211
+ return {0, 0, 0, nextTimestamp}
212
212
  end
213
213
  end
214
214
 
@@ -549,7 +549,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- // Make sure job exists
549
549
  if (nextTimestamp ~= nil) then
550
550
  -- The result is guaranteed to be positive, since the
551
551
  -- ZRANGEBYSCORE command would have return a job otherwise.
552
- return {0, 0, 0, nextTimestamp - timestamp}
552
+ return {0, 0, 0, nextTimestamp}
553
553
  end
554
554
  end
555
555
  local waitLen = rcall("LLEN", KEYS[1])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bullmq",
3
- "version": "3.5.9",
3
+ "version": "3.5.10",
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",