fix(bullmq): bump to 5.77.6 and update set calls w new args shape

This commit is contained in:
jakeaturner 2026-06-09 18:16:05 +00:00
parent d4972445d9
commit 37ad684fbd
No known key found for this signature in database
GPG Key ID: B1072EBDEECE328D
5 changed files with 41 additions and 44 deletions

View File

@ -37,7 +37,7 @@ export class DownloadModelJob {
const queueService = QueueService.getInstance() const queueService = QueueService.getInstance()
const queue = queueService.getQueue(this.queue) const queue = queueService.getQueue(this.queue)
const client = await queue.client const client = await queue.client
await client.set(this.cancelKey(jobId), '1', 'EX', 300) // 5 min TTL await client.set(this.cancelKey(jobId), '1', { EX: 300 }) // 5 min TTL
} }
async handle(job: Job) { async handle(job: Job) {

View File

@ -63,7 +63,7 @@ export class RunDownloadJob {
const queueService = QueueService.getInstance() const queueService = QueueService.getInstance()
const queue = queueService.getQueue(this.queue) const queue = queueService.getQueue(this.queue)
const client = await queue.client const client = await queue.client
await client.set(this.cancelKey(jobId), '1', 'EX', 300) // 5 min TTL await client.set(this.cancelKey(jobId), '1', { EX: 300 }) // 5 min TTL
} }
async handle(job: Job) { async handle(job: Job) {

View File

@ -52,7 +52,7 @@ export class RunExtractPmtilesJob {
const queueService = QueueService.getInstance() const queueService = QueueService.getInstance()
const queue = queueService.getQueue(this.queue) const queue = queueService.getQueue(this.queue)
const client = await queue.client const client = await queue.client
await client.set(this.cancelKey(jobId), '1', 'EX', 300) await client.set(this.cancelKey(jobId), '1', { EX: 300 })
} }
/** Awaits job.updateProgress and swallows BullMQ stale-job errors (code -1), /** Awaits job.updateProgress and swallows BullMQ stale-job errors (code -1),

View File

@ -40,7 +40,7 @@
"autoprefixer": "10.5.0", "autoprefixer": "10.5.0",
"axios": "1.17.0", "axios": "1.17.0",
"better-sqlite3": "12.6.2", "better-sqlite3": "12.6.2",
"bullmq": "5.67.2", "bullmq": "5.77.6",
"cheerio": "1.2.0", "cheerio": "1.2.0",
"compression": "1.8.1", "compression": "1.8.1",
"dockerode": "4.0.9", "dockerode": "4.0.9",
@ -2706,9 +2706,9 @@
} }
}, },
"node_modules/@ioredis/commands": { "node_modules/@ioredis/commands": {
"version": "1.5.0", "version": "1.5.1",
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.0.tgz", "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.1.tgz",
"integrity": "sha512-eUgLqrMf8nJkZxT24JvVRrQya1vZkQh8BBeYNwGDqa5I0VUi8ACx7uFvAaLxintokpTenkK6DASvo/bvNbBGow==", "integrity": "sha512-JH8ZL/ywcJyR9MmJ5BNqZllXNZQqQbnVZOqpPQqE1vHiFgAw4NHbvE0FOduNU8IX9babitBT46571OnPTT0Zcw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@isaacs/cliui": { "node_modules/@isaacs/cliui": {
@ -6888,24 +6888,34 @@
} }
}, },
"node_modules/bullmq": { "node_modules/bullmq": {
"version": "5.67.2", "version": "5.77.6",
"resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.67.2.tgz", "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.77.6.tgz",
"integrity": "sha512-3KYqNqQptKcgksACO1li4YW9/jxEh6XWa1lUg4OFrHa80Pf0C7H9zeb6ssbQQDfQab/K3QCXopbZ40vrvcyrLw==", "integrity": "sha512-WCpSoCD4vWyRD+btOsFrO7iBGInrTgG155gTZCV8qY0Yex2KtsbVtFERx6V1WZ2xWl/5ZxnLar8Z8ufnS4f5jg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"cron-parser": "4.9.0", "cron-parser": "4.9.0",
"ioredis": "5.9.2", "ioredis": "5.10.1",
"msgpackr": "1.11.5", "msgpackr": "2.0.1",
"node-abort-controller": "3.1.1", "node-abort-controller": "3.1.1",
"semver": "7.7.3", "semver": "7.8.0",
"tslib": "2.8.1", "tslib": "2.8.1"
"uuid": "11.1.0" },
"engines": {
"node": ">=12.22.0"
},
"peerDependencies": {
"redis": ">=5.0.0"
},
"peerDependenciesMeta": {
"redis": {
"optional": true
}
} }
}, },
"node_modules/bullmq/node_modules/semver": { "node_modules/bullmq/node_modules/semver": {
"version": "7.7.3", "version": "7.8.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",
"integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",
"license": "ISC", "license": "ISC",
"bin": { "bin": {
"semver": "bin/semver.js" "semver": "bin/semver.js"
@ -8063,20 +8073,6 @@
"node": ">= 8.0" "node": ">= 8.0"
} }
}, },
"node_modules/dockerode/node_modules/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
"deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/dom-serializer": { "node_modules/dom-serializer": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
@ -10356,12 +10352,12 @@
} }
}, },
"node_modules/ioredis": { "node_modules/ioredis": {
"version": "5.9.2", "version": "5.10.1",
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.9.2.tgz", "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.10.1.tgz",
"integrity": "sha512-tAAg/72/VxOUW7RQSX1pIxJVucYKcjFjfvj60L57jrZpYCHC3XN0WCQ3sNYL4Gmvv+7GPvTAjc+KSdeNuE8oWQ==", "integrity": "sha512-HuEDBTI70aYdx1v6U97SbNx9F1+svQKBDo30o0b9fw055LMepzpOOd0Ccg9Q6tbqmBSJaMuY0fB7yw9/vjBYCA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ioredis/commands": "1.5.0", "@ioredis/commands": "1.5.1",
"cluster-key-slot": "^1.1.0", "cluster-key-slot": "^1.1.0",
"debug": "^4.3.4", "debug": "^4.3.4",
"denque": "^2.1.0", "denque": "^2.1.0",
@ -12767,9 +12763,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/msgpackr": { "node_modules/msgpackr": {
"version": "1.11.5", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.11.5.tgz", "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-2.0.1.tgz",
"integrity": "sha512-UjkUHN0yqp9RWKy0Lplhh+wlpdt9oQBYgULZOiFhV3VclSF1JnSQWZ5r9gORQlNYaUKQoR8itv7g7z1xDDuACA==", "integrity": "sha512-9J+tqTEsbHqY8YohazYgty7LgerFIWxvMLpUjqETSmjHojtJm2WnX2kK/2a1fLI7CO7ERP1YSEUXMucz4j+yBA==",
"license": "MIT", "license": "MIT",
"optionalDependencies": { "optionalDependencies": {
"msgpackr-extract": "^3.0.2" "msgpackr-extract": "^3.0.2"
@ -16793,16 +16789,17 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/uuid": { "node_modules/uuid": {
"version": "11.1.0", "version": "10.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
"deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
"funding": [ "funding": [
"https://github.com/sponsors/broofa", "https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan" "https://github.com/sponsors/ctavan"
], ],
"license": "MIT", "license": "MIT",
"bin": { "bin": {
"uuid": "dist/esm/bin/uuid" "uuid": "dist/bin/uuid"
} }
}, },
"node_modules/v8-compile-cache-lib": { "node_modules/v8-compile-cache-lib": {

View File

@ -93,7 +93,7 @@
"autoprefixer": "10.5.0", "autoprefixer": "10.5.0",
"axios": "1.17.0", "axios": "1.17.0",
"better-sqlite3": "12.6.2", "better-sqlite3": "12.6.2",
"bullmq": "5.67.2", "bullmq": "5.77.6",
"cheerio": "1.2.0", "cheerio": "1.2.0",
"compression": "1.8.1", "compression": "1.8.1",
"dockerode": "4.0.9", "dockerode": "4.0.9",