fix(queue): use BullMQ-safe outbound job ids
This commit is contained in:
@@ -99,7 +99,7 @@ export async function enqueueOutboundDelivery(input: OutboundDeliveryJob, opts?:
|
||||
});
|
||||
|
||||
return q.add("deliver", { ...input, endpoint }, {
|
||||
jobId: `omni:${input.omniMessageId}`,
|
||||
jobId: `omni-${input.omniMessageId}`,
|
||||
attempts: 12,
|
||||
backoff: { type: "exponential", delay: 1000 },
|
||||
...opts,
|
||||
|
||||
@@ -98,7 +98,7 @@ export async function enqueueOutboundDelivery(input: OutboundDeliveryJob, opts?:
|
||||
});
|
||||
|
||||
return q.add("deliver", { ...input, endpoint }, {
|
||||
jobId: `omni:${input.omniMessageId}`,
|
||||
jobId: `omni-${input.omniMessageId}`,
|
||||
attempts: 12,
|
||||
backoff: { type: "exponential", delay: 1000 },
|
||||
...opts,
|
||||
|
||||
Reference in New Issue
Block a user