Mark messages as failed when running out of time
This commit is contained in:
parent
e86a312b74
commit
e69857fc13
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,9 @@ export async function sendNormalMessage(
|
|||
|
||||
if (!shouldContinue) {
|
||||
log.info(`message ${messageId} ran out of time. Giving up on sending it`);
|
||||
await markMessageFailed(message, messageSendErrors);
|
||||
await markMessageFailed(message, [
|
||||
new Error('Message send ran out of time'),
|
||||
]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue