Increase max attempt count for unprocessed items
This commit is contained in:
parent
a80c6d89a8
commit
ecbf84638d
2 changed files with 13 additions and 3 deletions
|
@ -776,6 +776,13 @@ export default class MessageReceiver
|
|||
}
|
||||
|
||||
private async queueAllCached(): Promise<void> {
|
||||
if (this.stoppingProcessing) {
|
||||
log.info(
|
||||
'MessageReceiver.queueAllCached: not running due to stopped processing'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const items = await this.getAllFromCache();
|
||||
const max = items.length;
|
||||
for (let i = 0; i < max; i += 1) {
|
||||
|
@ -1098,7 +1105,7 @@ export default class MessageReceiver
|
|||
id,
|
||||
version: 2,
|
||||
|
||||
attempts: 1,
|
||||
attempts: 0,
|
||||
envelope: Bytes.toBase64(plaintext),
|
||||
messageAgeSec: envelope.messageAgeSec,
|
||||
receivedAtCounter: envelope.receivedAtCounter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue