FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(api): await SMS batch status update by tomatotomata · Pull Request #288 · textbee/textbee · GitHub

fix(api): await SMS batch status update - #288

Draft
tomatotomata wants to merge 1 commit into
textbee:mainfrom
tomatotomata:codex/await-sms-batch-status-279
Draft

tomatotomata wants to merge 1 commit into
textbee:mainfrom
tomatotomata:codex/await-sms-batch-status-279

Conversation

Copy link
Copy Markdown

Summary

The SMS queue processor started the FCM send before awaiting the batch transition to processing. If that update failed, its rejected promise could escape the outer error handler and the batch stayed pending until the timeout task changed it to unknown.

This change awaits the status update so failures enter the existing processing error path, and removes the nested rethrow that created an unhandled rejection. A focused unit test proves the FCM send does not begin until the status update resolves and verifies the processing transition.

Closes #279.

Validation

  • pnpm exec jest --runInBand src/gateway/queue/sms-queue.processor.spec.ts
  • pnpm exec jest --runInBand (14 suites, 162 tests passed)
  • pnpm exec prettier --check src/gateway/queue/sms-queue.processor.spec.ts
  • git diff --check

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

@tomatotomata is attempting to deploy a commit to the vernu's projects Team on Vercel.

A member of the Team first needs to authorize it.

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5c0d2743-bef7-40dd-9e2b-9b7e7e82087a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API: batch status update in the SMS queue processor is unawaited, failures vanish

1 participant


Back | FazBrowse Home | New Git URL