mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-03 17:51:58 +01:00
Integrate canonical dispatch hints while preserving issue recovery
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
commit
e2983645cc
2 files changed
+5
-3
No files matched your search
@@ -5,7 +5,7 @@ export type RunDispatchScope = { companyId: string };
|
||||
|
||||
export async function notifyRunDispatch(transaction: object, scope?: RunDispatchScope) {
|
||||
await notifyIssueRecovery(transaction, scope);
|
||||
const hint = scope ? JSON.stringify(scope) : "*";
|
||||
const hint = scope ? JSON.stringify({ companyId: scope.companyId }) : "*";
|
||||
await notifyDeliveryWork(transaction, DELIVERY_QUEUES.scheduledRetryDispatch, hint);
|
||||
await notifyDeliveryWork(transaction, DELIVERY_QUEUES.queuedRunDispatch, hint);
|
||||
}
|
||||
Reference in new issue
Block a user