bullmq 5.76.6 → 5.76.7
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/queue-events.js +2 -2
- package/dist/cjs/classes/queue-events.js.map +1 -1
- package/dist/cjs/classes/queue-getters.js +1 -1
- package/dist/cjs/commands/addPrioritizedJob-9.lua +1 -1
- package/dist/cjs/commands/extendLock-2.lua +1 -1
- package/dist/cjs/commands/includes/collectMetrics.lua +1 -1
- package/dist/cjs/commands/moveStalledJobsToWait-8.lua +1 -1
- package/dist/cjs/commands/moveToFinished-14.lua +2 -2
- package/dist/cjs/commands/obliterate-2.lua +1 -1
- package/dist/cjs/commands/pause-7.lua +3 -3
- package/dist/cjs/commands/releaseLock-1.lua +1 -1
- package/dist/cjs/scripts/addPrioritizedJob-9.js +1 -1
- package/dist/cjs/scripts/extendLock-2.js +1 -1
- package/dist/cjs/scripts/moveStalledJobsToWait-8.js +1 -1
- package/dist/cjs/scripts/moveToFinished-14.js +3 -3
- package/dist/cjs/scripts/obliterate-2.js +1 -1
- package/dist/cjs/scripts/pause-7.js +3 -3
- package/dist/cjs/scripts/releaseLock-1.js +1 -1
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/classes/queue-events.js +2 -2
- package/dist/esm/classes/queue-events.js.map +1 -1
- package/dist/esm/classes/queue-getters.d.ts +1 -1
- package/dist/esm/classes/queue-getters.js +1 -1
- package/dist/esm/commands/addPrioritizedJob-9.lua +1 -1
- package/dist/esm/commands/extendLock-2.lua +1 -1
- package/dist/esm/commands/includes/collectMetrics.lua +1 -1
- package/dist/esm/commands/moveStalledJobsToWait-8.lua +1 -1
- package/dist/esm/commands/moveToFinished-14.lua +2 -2
- package/dist/esm/commands/obliterate-2.lua +1 -1
- package/dist/esm/commands/pause-7.lua +3 -3
- package/dist/esm/commands/releaseLock-1.lua +1 -1
- package/dist/esm/scripts/addPrioritizedJob-9.js +1 -1
- package/dist/esm/scripts/extendLock-2.js +1 -1
- package/dist/esm/scripts/moveStalledJobsToWait-8.js +1 -1
- package/dist/esm/scripts/moveToFinished-14.js +3 -3
- package/dist/esm/scripts/obliterate-2.js +1 -1
- package/dist/esm/scripts/pause-7.js +3 -3
- package/dist/esm/scripts/releaseLock-1.js +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +4 -4
|
@@ -57,7 +57,7 @@ class QueueEvents extends queue_base_1.QueueBase {
|
|
|
57
57
|
try {
|
|
58
58
|
this.running = true;
|
|
59
59
|
const client = await this.client;
|
|
60
|
-
// TODO:
|
|
60
|
+
// TODO: Planned for deprecation as it really has no use case
|
|
61
61
|
try {
|
|
62
62
|
await client.client('SETNAME', this.clientName(utils_1.QUEUE_EVENT_SUFFIX));
|
|
63
63
|
}
|
|
@@ -93,7 +93,7 @@ class QueueEvents extends queue_base_1.QueueBase {
|
|
|
93
93
|
id = events[i][0];
|
|
94
94
|
const args = (0, utils_1.array2obj)(events[i][1]);
|
|
95
95
|
//
|
|
96
|
-
// TODO: we may need to have a separate
|
|
96
|
+
// TODO: we may need to have a separate stream for progress data
|
|
97
97
|
// to avoid this hack.
|
|
98
98
|
switch (args.event) {
|
|
99
99
|
case 'progress':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-events.js","sourceRoot":"","sources":["../../../src/classes/queue-events.ts"],"names":[],"mappings":";;;;AAQA,oCAKkB;AAClB,6CAAyC;AAgQzC;;;;;;GAMG;AACH,MAAa,WAAY,SAAQ,sBAAS;IAIxC,YACE,IAAY,EACZ,KAA8D;QAC5D,UAAU,EAAE,EAAE;KACf,EACD,UAAmC;;YAHnC,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,OAE3B,EAFgC,IAAI,sBAArC,yBAAuC,CAAF;QAKrC,KAAK,CACH,IAAI,kCAEC,IAAI,KACP,UAA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 @@ class QueueGetters extends queue_base_1.QueueBase {
|
|
|
74
74
|
/**
|
|
75
75
|
* Returns the time to live for a rate limited key in milliseconds.
|
|
76
76
|
* @param maxJobs - max jobs to be considered in rate limit state. If not passed
|
|
77
|
-
* it will return the remaining ttl without considering if max jobs is
|
|
77
|
+
* it will return the remaining ttl without considering if max jobs is exceeded.
|
|
78
78
|
* @returns -2 if the key does not exist.
|
|
79
79
|
* -1 if the key exists but has no associated expire.
|
|
80
80
|
* @see {@link https://redis.io/commands/pttl/}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
--[[
|
|
2
|
-
Adds a
|
|
2
|
+
Adds a prioritized job to the queue by doing the following:
|
|
3
3
|
- Increases the job counter if needed.
|
|
4
4
|
- Creates a new job key with the job data.
|
|
5
5
|
- Adds the job to the "added" list so that workers gets notified.
|
|
@@ -46,7 +46,7 @@ end
|
|
|
46
46
|
|
|
47
47
|
rcall("SET", stalledCheckKey, timestamp, "PX", maxCheckTime)
|
|
48
48
|
|
|
49
|
-
-- Trim events before
|
|
49
|
+
-- Trim events before emitting them to avoid trimming events emitted in this script
|
|
50
50
|
trimEvents(metaKey, eventStreamKey)
|
|
51
51
|
|
|
52
52
|
-- Move all stalled jobs to wait
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
--[[
|
|
2
|
-
Move job from active to a finished status (completed
|
|
2
|
+
Move job from active to a finished status (completed or failed)
|
|
3
3
|
A job can only be moved to completed if it was active.
|
|
4
4
|
The job must be locked before it can be moved to a finished status,
|
|
5
5
|
and the lock must be released in this script.
|
|
@@ -127,7 +127,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- Make sure job exists
|
|
|
127
127
|
|
|
128
128
|
local eventStreamKey = KEYS[4]
|
|
129
129
|
local metaKey = KEYS[9]
|
|
130
|
-
-- Trim events before
|
|
130
|
+
-- Trim events before emitting them to avoid trimming events emitted in this script
|
|
131
131
|
trimEvents(metaKey, eventStreamKey)
|
|
132
132
|
|
|
133
133
|
local prefix = ARGV[7]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
The queue needs to be "paused" or it will return an error
|
|
8
8
|
If the queue has currently active jobs then the script by default will return error,
|
|
9
|
-
however this behaviour can be
|
|
9
|
+
however this behaviour can be overridden using the 'force' option.
|
|
10
10
|
|
|
11
11
|
Input:
|
|
12
12
|
KEYS[1] meta
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--[[
|
|
2
|
-
Pauses or resumes a queue
|
|
2
|
+
Pauses or resumes a queue globally.
|
|
3
3
|
|
|
4
4
|
Input:
|
|
5
|
-
KEYS[1] 'wait' or 'paused'
|
|
5
|
+
KEYS[1] 'wait' or 'paused'
|
|
6
6
|
KEYS[2] 'paused' or 'wait'
|
|
7
7
|
KEYS[3] 'meta'
|
|
8
8
|
KEYS[4] 'prioritized'
|
|
9
9
|
KEYS[5] events stream key
|
|
10
10
|
KEYS[6] 'delayed'
|
|
11
|
-
KEYS
|
|
11
|
+
KEYS[7] 'marker'
|
|
12
12
|
|
|
13
13
|
ARGV[1] 'paused' or 'resumed'
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addPrioritizedJob = void 0;
|
|
4
4
|
const content = `--[[
|
|
5
|
-
Adds a
|
|
5
|
+
Adds a prioritized job to the queue by doing the following:
|
|
6
6
|
- Increases the job counter if needed.
|
|
7
7
|
- Creates a new job key with the job data.
|
|
8
8
|
- Adds the job to the "added" list so that workers gets notified.
|
|
@@ -122,7 +122,7 @@ if rcall("EXISTS", stalledCheckKey) == 1 then
|
|
|
122
122
|
return {}
|
|
123
123
|
end
|
|
124
124
|
rcall("SET", stalledCheckKey, timestamp, "PX", maxCheckTime)
|
|
125
|
-
-- Trim events before
|
|
125
|
+
-- Trim events before emitting them to avoid trimming events emitted in this script
|
|
126
126
|
trimEvents(metaKey, eventStreamKey)
|
|
127
127
|
-- Move all stalled jobs to wait
|
|
128
128
|
local stalling = rcall('SMEMBERS', stalledKey)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.moveToFinished = void 0;
|
|
4
4
|
const content = `--[[
|
|
5
|
-
Move job from active to a finished status (completed
|
|
5
|
+
Move job from active to a finished status (completed or failed)
|
|
6
6
|
A job can only be moved to completed if it was active.
|
|
7
7
|
The job must be locked before it can be moved to a finished status,
|
|
8
8
|
and the lock must be released in this script.
|
|
@@ -56,7 +56,7 @@ local rcall = redis.call
|
|
|
56
56
|
--- Includes
|
|
57
57
|
--[[
|
|
58
58
|
Functions to collect metrics based on a current and previous count of jobs.
|
|
59
|
-
|
|
59
|
+
Granularity is fixed at 1 minute.
|
|
60
60
|
]]
|
|
61
61
|
--[[
|
|
62
62
|
Function to loop in batches.
|
|
@@ -936,7 +936,7 @@ if rcall("EXISTS", jobIdKey) == 1 then -- Make sure job exists
|
|
|
936
936
|
end
|
|
937
937
|
local eventStreamKey = KEYS[4]
|
|
938
938
|
local metaKey = KEYS[9]
|
|
939
|
-
-- Trim events before
|
|
939
|
+
-- Trim events before emitting them to avoid trimming events emitted in this script
|
|
940
940
|
trimEvents(metaKey, eventStreamKey)
|
|
941
941
|
local prefix = ARGV[7]
|
|
942
942
|
removeDeduplicationKeyIfNeededOnFinalization(prefix, jobAttributes[3], jobId)
|
|
@@ -8,7 +8,7 @@ const content = `--[[
|
|
|
8
8
|
keys, consider that this call may be slow for very large queues.
|
|
9
9
|
The queue needs to be "paused" or it will return an error
|
|
10
10
|
If the queue has currently active jobs then the script by default will return error,
|
|
11
|
-
however this behaviour can be
|
|
11
|
+
however this behaviour can be overridden using the 'force' option.
|
|
12
12
|
Input:
|
|
13
13
|
KEYS[1] meta
|
|
14
14
|
KEYS[2] base
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pause = void 0;
|
|
4
4
|
const content = `--[[
|
|
5
|
-
Pauses or resumes a queue
|
|
5
|
+
Pauses or resumes a queue globally.
|
|
6
6
|
Input:
|
|
7
|
-
KEYS[1] 'wait' or 'paused'
|
|
7
|
+
KEYS[1] 'wait' or 'paused'
|
|
8
8
|
KEYS[2] 'paused' or 'wait'
|
|
9
9
|
KEYS[3] 'meta'
|
|
10
10
|
KEYS[4] 'prioritized'
|
|
11
11
|
KEYS[5] events stream key
|
|
12
12
|
KEYS[6] 'delayed'
|
|
13
|
-
KEYS
|
|
13
|
+
KEYS[7] 'marker'
|
|
14
14
|
ARGV[1] 'paused' or 'resumed'
|
|
15
15
|
Event:
|
|
16
16
|
publish paused or resumed event.
|