Removed deletion of over-attempts-unprocessed from saveUnprocessedSync

This commit is contained in:
Alvaro 2023-02-21 14:03:48 -07:00 committed by GitHub
parent b483d26488
commit a4b5968579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3255,14 +3255,6 @@ function saveUnprocessedSync(data: UnprocessedType): string {
throw new Error('saveUnprocessedSync: id was falsey');
}
if (attempts > MAX_UNPROCESSED_ATTEMPTS) {
logger.warn(
`saveUnprocessedSync: not saving ${id} due to exhausted attempts`
);
removeUnprocessedSync(id);
return id;
}
prepare(
db,
`