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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
13e96e9356
commit
66649022ca
+3
-3
@@ -158,7 +158,7 @@ export class TaskQueue {
|
|||||||
"create-workspace",
|
"create-workspace",
|
||||||
{ task, comment },
|
{ task, comment },
|
||||||
{
|
{
|
||||||
jobId: `create:${key}`,
|
jobId: `create-${key}`,
|
||||||
attempts: 3,
|
attempts: 3,
|
||||||
backoff: { type: "exponential", delay: 5000 },
|
backoff: { type: "exponential", delay: 5000 },
|
||||||
},
|
},
|
||||||
@@ -198,7 +198,7 @@ export class TaskQueue {
|
|||||||
"cleanup-workspace",
|
"cleanup-workspace",
|
||||||
{ workspaceId: entry.workspaceId, workspaceName: entry.workspaceName },
|
{ workspaceId: entry.workspaceId, workspaceName: entry.workspaceName },
|
||||||
{
|
{
|
||||||
jobId: `cleanup:${workspaceName}`,
|
jobId: `cleanup-${workspaceName}`,
|
||||||
attempts: 5,
|
attempts: 5,
|
||||||
backoff: { type: "exponential", delay: 10000 },
|
backoff: { type: "exponential", delay: 10000 },
|
||||||
},
|
},
|
||||||
@@ -308,7 +308,7 @@ export class TaskQueue {
|
|||||||
"cleanup-workspace",
|
"cleanup-workspace",
|
||||||
{ workspaceId: ws.id, workspaceName: ws.name },
|
{ workspaceId: ws.id, workspaceName: ws.name },
|
||||||
{
|
{
|
||||||
jobId: `cleanup:stale-${ws.name}-${Date.now()}`,
|
jobId: `cleanup-stale-${ws.name}-${Date.now()}`,
|
||||||
attempts: 5,
|
attempts: 5,
|
||||||
backoff: { type: "exponential", delay: 10000 },
|
backoff: { type: "exponential", delay: 10000 },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user