bullmq 5.40.1 → 5.40.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.
Files changed (41) hide show
  1. package/dist/cjs/commands/addDelayedJob-6.lua +2 -2
  2. package/dist/cjs/commands/addParentJob-4.lua +2 -2
  3. package/dist/cjs/commands/addPrioritizedJob-8.lua +2 -2
  4. package/dist/cjs/commands/addStandardJob-8.lua +2 -2
  5. package/dist/cjs/commands/includes/deduplicateJob.lua +1 -1
  6. package/dist/cjs/commands/includes/getNextDelayedTimestamp.lua +1 -1
  7. package/dist/cjs/scripts/addDelayedJob-6.js +4 -4
  8. package/dist/cjs/scripts/addParentJob-4.js +4 -4
  9. package/dist/cjs/scripts/addPrioritizedJob-8.js +4 -4
  10. package/dist/cjs/scripts/addStandardJob-8.js +4 -4
  11. package/dist/cjs/scripts/changeDelay-4.js +1 -1
  12. package/dist/cjs/scripts/moveStalledJobsToWait-9.js +1 -1
  13. package/dist/cjs/scripts/moveToActive-11.js +1 -1
  14. package/dist/cjs/scripts/moveToDelayed-8.js +1 -1
  15. package/dist/cjs/scripts/moveToFinished-14.js +1 -1
  16. package/dist/cjs/scripts/pause-7.js +1 -1
  17. package/dist/cjs/scripts/updateJobScheduler-7.js +1 -1
  18. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/classes/queue.d.ts +1 -1
  21. package/dist/esm/commands/addDelayedJob-6.lua +2 -2
  22. package/dist/esm/commands/addParentJob-4.lua +2 -2
  23. package/dist/esm/commands/addPrioritizedJob-8.lua +2 -2
  24. package/dist/esm/commands/addStandardJob-8.lua +2 -2
  25. package/dist/esm/commands/includes/deduplicateJob.lua +1 -1
  26. package/dist/esm/commands/includes/getNextDelayedTimestamp.lua +1 -1
  27. package/dist/esm/scripts/addDelayedJob-6.js +4 -4
  28. package/dist/esm/scripts/addParentJob-4.js +4 -4
  29. package/dist/esm/scripts/addPrioritizedJob-8.js +4 -4
  30. package/dist/esm/scripts/addStandardJob-8.js +4 -4
  31. package/dist/esm/scripts/changeDelay-4.js +1 -1
  32. package/dist/esm/scripts/moveStalledJobsToWait-9.js +1 -1
  33. package/dist/esm/scripts/moveToActive-11.js +1 -1
  34. package/dist/esm/scripts/moveToDelayed-8.js +1 -1
  35. package/dist/esm/scripts/moveToFinished-14.js +1 -1
  36. package/dist/esm/scripts/pause-7.js +1 -1
  37. package/dist/esm/scripts/updateJobScheduler-7.js +1 -1
  38. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  39. package/dist/esm/version.d.ts +1 -1
  40. package/dist/esm/version.js +1 -1
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '5.40.1';
4
+ exports.version = '5.40.2';
5
5
  //# sourceMappingURL=version.js.map
@@ -96,7 +96,7 @@ export declare class Queue<DataTypeOrJob = any, DefaultResultType = any, Default
96
96
  jobsOpts: BaseJobOptions;
97
97
  opts: QueueOptions;
98
98
  protected libName: string;
99
- private _repeat?;
99
+ protected _repeat?: Repeat;
100
100
  protected _jobScheduler?: JobScheduler;
101
101
  constructor(name: string, opts?: QueueOptions, Connection?: typeof RedisConnection);
102
102
  emit<U extends keyof QueueListener<JobBase<DataType, ResultType, NameType>>>(event: U, ...args: Parameters<QueueListener<JobBase<DataType, ResultType, NameType>>[U]>): boolean;
@@ -88,8 +88,8 @@ else
88
88
  end
89
89
  end
90
90
 
91
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
92
- jobId, deduplicationKey, eventsKey, maxEvents)
91
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId, deduplicationKey,
92
+ eventsKey, maxEvents)
93
93
  if deduplicationJobId then
94
94
  return deduplicationJobId
95
95
  end
@@ -81,8 +81,8 @@ else
81
81
  end
82
82
  end
83
83
 
84
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
85
- jobId, deduplicationKey, eventsKey, maxEvents)
84
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
85
+ deduplicationKey, eventsKey, maxEvents)
86
86
  if deduplicationJobId then
87
87
  return deduplicationJobId
88
88
  end
@@ -90,8 +90,8 @@ else
90
90
  end
91
91
  end
92
92
 
93
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
94
- jobId, deduplicationKey, eventsKey, maxEvents)
93
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
94
+ deduplicationKey, eventsKey, maxEvents)
95
95
  if deduplicationJobId then
96
96
  return deduplicationJobId
97
97
  end
@@ -94,8 +94,8 @@ else
94
94
  end
95
95
  end
96
96
 
97
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
98
- jobId, deduplicationKey, eventsKey, maxEvents)
97
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
98
+ deduplicationKey, eventsKey, maxEvents)
99
99
  if deduplicationJobId then
100
100
  return deduplicationJobId
101
101
  end
@@ -2,7 +2,7 @@
2
2
  Function to debounce a job.
3
3
  ]]
4
4
 
5
- local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
5
+ local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
6
6
  local deduplicationId = deduplicationOpts and deduplicationOpts['id']
7
7
  if deduplicationId then
8
8
  local ttl = deduplicationOpts['ttl']
@@ -5,7 +5,7 @@ local function getNextDelayedTimestamp(delayedKey)
5
5
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
6
6
  if #result then
7
7
  local nextTimestamp = tonumber(result[2])
8
- if nextTimestamp ~= nil then
8
+ if nextTimestamp ~= nil then
9
9
  return nextTimestamp / 0x1000
10
10
  end
11
11
  end
@@ -63,7 +63,7 @@ local function getNextDelayedTimestamp(delayedKey)
63
63
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
64
64
  if #result then
65
65
  local nextTimestamp = tonumber(result[2])
66
- if nextTimestamp ~= nil then
66
+ if nextTimestamp ~= nil then
67
67
  return nextTimestamp / 0x1000
68
68
  end
69
69
  end
@@ -145,7 +145,7 @@ end
145
145
  --[[
146
146
  Function to debounce a job.
147
147
  ]]
148
- local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
148
+ local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
149
149
  local deduplicationId = deduplicationOpts and deduplicationOpts['id']
150
150
  if deduplicationId then
151
151
  local ttl = deduplicationOpts['ttl']
@@ -359,8 +359,8 @@ else
359
359
  maxEvents, timestamp)
360
360
  end
361
361
  end
362
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
363
- jobId, deduplicationKey, eventsKey, maxEvents)
362
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId, deduplicationKey,
363
+ eventsKey, maxEvents)
364
364
  if deduplicationJobId then
365
365
  return deduplicationJobId
366
366
  end
@@ -44,7 +44,7 @@ local parentData
44
44
  --[[
45
45
  Function to debounce a job.
46
46
  ]]
47
- local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
47
+ local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
48
48
  local deduplicationId = deduplicationOpts and deduplicationOpts['id']
49
49
  if deduplicationId then
50
50
  local ttl = deduplicationOpts['ttl']
@@ -105,7 +105,7 @@ local function getNextDelayedTimestamp(delayedKey)
105
105
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
106
106
  if #result then
107
107
  local nextTimestamp = tonumber(result[2])
108
- if nextTimestamp ~= nil then
108
+ if nextTimestamp ~= nil then
109
109
  return nextTimestamp / 0x1000
110
110
  end
111
111
  end
@@ -311,8 +311,8 @@ else
311
311
  maxEvents, timestamp)
312
312
  end
313
313
  end
314
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
315
- jobId, deduplicationKey, eventsKey, maxEvents)
314
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
315
+ deduplicationKey, eventsKey, maxEvents)
316
316
  if deduplicationJobId then
317
317
  return deduplicationJobId
318
318
  end
@@ -70,7 +70,7 @@ end
70
70
  --[[
71
71
  Function to debounce a job.
72
72
  ]]
73
- local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
73
+ local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
74
74
  local deduplicationId = deduplicationOpts and deduplicationOpts['id']
75
75
  if deduplicationId then
76
76
  local ttl = deduplicationOpts['ttl']
@@ -161,7 +161,7 @@ local function getNextDelayedTimestamp(delayedKey)
161
161
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
162
162
  if #result then
163
163
  local nextTimestamp = tonumber(result[2])
164
- if nextTimestamp ~= nil then
164
+ if nextTimestamp ~= nil then
165
165
  return nextTimestamp / 0x1000
166
166
  end
167
167
  end
@@ -318,8 +318,8 @@ else
318
318
  maxEvents, timestamp)
319
319
  end
320
320
  end
321
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
322
- jobId, deduplicationKey, eventsKey, maxEvents)
321
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
322
+ deduplicationKey, eventsKey, maxEvents)
323
323
  if deduplicationJobId then
324
324
  return deduplicationJobId
325
325
  end
@@ -70,7 +70,7 @@ end
70
70
  --[[
71
71
  Function to debounce a job.
72
72
  ]]
73
- local function deduplicateJob(prefixKey, deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
73
+ local function deduplicateJob(deduplicationOpts, jobId, deduplicationKey, eventsKey, maxEvents)
74
74
  local deduplicationId = deduplicationOpts and deduplicationOpts['id']
75
75
  if deduplicationId then
76
76
  local ttl = deduplicationOpts['ttl']
@@ -151,7 +151,7 @@ local function getNextDelayedTimestamp(delayedKey)
151
151
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
152
152
  if #result then
153
153
  local nextTimestamp = tonumber(result[2])
154
- if nextTimestamp ~= nil then
154
+ if nextTimestamp ~= nil then
155
155
  return nextTimestamp / 0x1000
156
156
  end
157
157
  end
@@ -322,8 +322,8 @@ else
322
322
  maxEvents, timestamp)
323
323
  end
324
324
  end
325
- local deduplicationJobId = deduplicateJob(args[1], opts['de'],
326
- jobId, deduplicationKey, eventsKey, maxEvents)
325
+ local deduplicationJobId = deduplicateJob(opts['de'], jobId,
326
+ deduplicationKey, eventsKey, maxEvents)
327
327
  if deduplicationJobId then
328
328
  return deduplicationJobId
329
329
  end
@@ -29,7 +29,7 @@ local function getNextDelayedTimestamp(delayedKey)
29
29
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
30
30
  if #result then
31
31
  local nextTimestamp = tonumber(result[2])
32
- if nextTimestamp ~= nil then
32
+ if nextTimestamp ~= nil then
33
33
  return nextTimestamp / 0x1000
34
34
  end
35
35
  end
@@ -90,7 +90,7 @@ local function getNextDelayedTimestamp(delayedKey)
90
90
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
91
91
  if #result then
92
92
  local nextTimestamp = tonumber(result[2])
93
- if nextTimestamp ~= nil then
93
+ if nextTimestamp ~= nil then
94
94
  return nextTimestamp / 0x1000
95
95
  end
96
96
  end
@@ -42,7 +42,7 @@ local function getNextDelayedTimestamp(delayedKey)
42
42
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
43
43
  if #result then
44
44
  local nextTimestamp = tonumber(result[2])
45
- if nextTimestamp ~= nil then
45
+ if nextTimestamp ~= nil then
46
46
  return nextTimestamp / 0x1000
47
47
  end
48
48
  end
@@ -36,7 +36,7 @@ local function getNextDelayedTimestamp(delayedKey)
36
36
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
37
37
  if #result then
38
38
  local nextTimestamp = tonumber(result[2])
39
- if nextTimestamp ~= nil then
39
+ if nextTimestamp ~= nil then
40
40
  return nextTimestamp / 0x1000
41
41
  end
42
42
  end
@@ -109,7 +109,7 @@ local function getNextDelayedTimestamp(delayedKey)
109
109
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
110
110
  if #result then
111
111
  local nextTimestamp = tonumber(result[2])
112
- if nextTimestamp ~= nil then
112
+ if nextTimestamp ~= nil then
113
113
  return nextTimestamp / 0x1000
114
114
  end
115
115
  end
@@ -25,7 +25,7 @@ local function getNextDelayedTimestamp(delayedKey)
25
25
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
26
26
  if #result then
27
27
  local nextTimestamp = tonumber(result[2])
28
- if nextTimestamp ~= nil then
28
+ if nextTimestamp ~= nil then
29
29
  return nextTimestamp / 0x1000
30
30
  end
31
31
  end
@@ -45,7 +45,7 @@ local function getNextDelayedTimestamp(delayedKey)
45
45
  local result = rcall("ZRANGE", delayedKey, 0, 0, "WITHSCORES")
46
46
  if #result then
47
47
  local nextTimestamp = tonumber(result[2])
48
- if nextTimestamp ~= nil then
48
+ if nextTimestamp ~= nil then
49
49
  return nextTimestamp / 0x1000
50
50
  end
51
51
  end