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 }, {
|
return q.add("deliver", { ...input, endpoint }, {
|
||||||
jobId: `omni:${input.omniMessageId}`,
|
jobId: `omni-${input.omniMessageId}`,
|
||||||
attempts: 12,
|
attempts: 12,
|
||||||
backoff: { type: "exponential", delay: 1000 },
|
backoff: { type: "exponential", delay: 1000 },
|
||||||
...opts,
|
...opts,
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export async function enqueueOutboundDelivery(input: OutboundDeliveryJob, opts?:
|
|||||||
});
|
});
|
||||||
|
|
||||||
return q.add("deliver", { ...input, endpoint }, {
|
return q.add("deliver", { ...input, endpoint }, {
|
||||||
jobId: `omni:${input.omniMessageId}`,
|
jobId: `omni-${input.omniMessageId}`,
|
||||||
attempts: 12,
|
attempts: 12,
|
||||||
backoff: { type: "exponential", delay: 1000 },
|
backoff: { type: "exponential", delay: 1000 },
|
||||||
...opts,
|
...opts,
|
||||||
|
|||||||
Reference in New Issue
Block a user