Skip to content

Commit 67808d5

Browse files
committed
AP-5046 Comment.
1 parent 043c626 commit 67808d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/outbox-core/lib/outbox.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export type OutboxEntry<SupportedEvent extends CommonEventDefinition> = {
2626
created: Date
2727
updated?: Date
2828
retryCount: number
29+
lockedUntil?: Date
2930
}
3031

3132
/**
@@ -53,6 +54,11 @@ export interface OutboxStorage<SupportedEvents extends CommonEventDefinition[]>
5354
getEntries(maxRetryCount: number): Promise<OutboxEntry<SupportedEvents[number]>[]>
5455
}
5556

57+
/**
58+
* Main logic for handling outbox entries.
59+
*
60+
* If entry is rejected, it is NOT going to be handled during the same execution. Next execution will pick it up.
61+
*/
5662
export class OutboxProcessor<SupportedEvents extends CommonEventDefinition[]> {
5763
constructor(
5864
private readonly outboxStorage: OutboxStorage<SupportedEvents>,

0 commit comments

Comments
 (0)