Allow manually retrying attachment downloads

This commit is contained in:
Fedor Indutny 2022-05-23 16:07:41 -07:00 committed by GitHub
parent 59b45399e4
commit dfc310805a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 265 additions and 58 deletions

View file

@ -254,6 +254,7 @@ const dataInterface: ClientInterface = {
removeUnprocessed,
removeAllUnprocessed,
getAttachmentDownloadJobById,
getNextAttachmentDownloadJobs,
saveAttachmentDownloadJob,
resetAttachmentDownloadPending,
@ -1476,6 +1477,9 @@ async function removeAllUnprocessed() {
// Attachment downloads
async function getAttachmentDownloadJobById(id: string) {
return channels.getAttachmentDownloadJobById(id);
}
async function getNextAttachmentDownloadJobs(
limit?: number,
options?: { timestamp?: number }