From 66649022ca59d66b0de59e316a368528dfeb4068 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Sun, 12 Apr 2026 15:48:47 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20BullMQ=20jobId=20format=20=E2=80=94=20col?= =?UTF-8?q?ons=20are=20not=20allowed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BullMQ throws "Custom Id cannot contain :" when jobId includes colons. Replace colon separators with dashes in all jobId values. Co-Authored-By: Claude Opus 4.6 --- src/queue.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/queue.ts b/src/queue.ts index 635cba7..73c2a7f 100644 --- a/src/queue.ts +++ b/src/queue.ts @@ -158,7 +158,7 @@ export class TaskQueue { "create-workspace", { task, comment }, { - jobId: `create:${key}`, + jobId: `create-${key}`, attempts: 3, backoff: { type: "exponential", delay: 5000 }, }, @@ -198,7 +198,7 @@ export class TaskQueue { "cleanup-workspace", { workspaceId: entry.workspaceId, workspaceName: entry.workspaceName }, { - jobId: `cleanup:${workspaceName}`, + jobId: `cleanup-${workspaceName}`, attempts: 5, backoff: { type: "exponential", delay: 10000 }, }, @@ -308,7 +308,7 @@ export class TaskQueue { "cleanup-workspace", { workspaceId: ws.id, workspaceName: ws.name }, { - jobId: `cleanup:stale-${ws.name}-${Date.now()}`, + jobId: `cleanup-stale-${ws.name}-${Date.now()}`, attempts: 5, backoff: { type: "exponential", delay: 10000 }, },