Skip to content

Commit

Permalink
Mark messages as failed when running out of time
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed May 18, 2022
1 parent 7cb9784 commit e861118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/jobs/helpers/sendNormalMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e861118

Please sign in to comment.