Retry outbound reactions for up to a day
This commit is contained in:
parent
4a6b7968c1
commit
8670a4d864
25 changed files with 1444 additions and 473 deletions
|
@ -24,7 +24,10 @@ export class TestJobQueueStore implements JobQueueStore {
|
|||
});
|
||||
}
|
||||
|
||||
async insert(job: Readonly<StoredJob>): Promise<void> {
|
||||
async insert(
|
||||
job: Readonly<StoredJob>,
|
||||
{ shouldPersist = true }: Readonly<{ shouldPersist?: boolean }> = {}
|
||||
): Promise<void> {
|
||||
await fakeDelay();
|
||||
|
||||
this.storedJobs.forEach(storedJob => {
|
||||
|
@ -33,7 +36,9 @@ export class TestJobQueueStore implements JobQueueStore {
|
|||
}
|
||||
});
|
||||
|
||||
this.storedJobs.push(job);
|
||||
if (shouldPersist) {
|
||||
this.storedJobs.push(job);
|
||||
}
|
||||
|
||||
this.getPipe(job.queueType).add(job);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue