Removed hard limit on unprocessed messages in cache
This commit is contained in:
parent
1381e8df5d
commit
e51f582bfb
6 changed files with 130 additions and 44 deletions
|
@ -560,7 +560,10 @@ export type DataInterface = {
|
|||
) => Promise<void>;
|
||||
|
||||
getUnprocessedCount: () => Promise<number>;
|
||||
getAllUnprocessedAndIncrementAttempts: () => Promise<Array<UnprocessedType>>;
|
||||
getUnprocessedByIdsAndIncrementAttempts: (
|
||||
ids: ReadonlyArray<string>
|
||||
) => Promise<Array<UnprocessedType>>;
|
||||
getAllUnprocessedIds: () => Promise<Array<string>>;
|
||||
updateUnprocessedWithData: (
|
||||
id: string,
|
||||
data: UnprocessedUpdateType
|
||||
|
@ -570,6 +573,8 @@ export type DataInterface = {
|
|||
) => Promise<void>;
|
||||
getUnprocessedById: (id: string) => Promise<UnprocessedType | undefined>;
|
||||
removeUnprocessed: (id: string | Array<string>) => Promise<void>;
|
||||
|
||||
/** only for testing */
|
||||
removeAllUnprocessed: () => Promise<void>;
|
||||
|
||||
getAttachmentDownloadJobById: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue