Skip to content

Log partial batch-send failures instead of swallowing them#1037

Draft
mensfeld wants to merge 1 commit into
mainfrom
fix/surface-batch-send-failures
Draft

Log partial batch-send failures instead of swallowing them#1037
mensfeld wants to merge 1 commit into
mainfrom
fix/surface-batch-send-failures

Conversation

@mensfeld

Copy link
Copy Markdown
Collaborator

Queue#send_messages returned the SendMessageBatchResult but never looked at response.failed. SQS reports per-entry batch failures there (throttling, oversize/malformed entries, or a same-batch duplicate dedup id) rather than raising, so they vanished silently - most importantly via ShoryukenAdapter#enqueue_all, which reads only response.successful and even marks the dropped jobs successfully_enqueued.

Log each failed entry, mirroring delete_messages. enqueue_all (which calls send_messages) now surfaces them too. The response is still returned unchanged for callers that inspect it.

Queue#send_messages returned the SendMessageBatchResult but never looked
at response.failed. SQS reports per-entry batch failures there (throttling,
oversize/malformed entries, or a same-batch duplicate dedup id) rather
than raising, so they vanished silently - most importantly via
ShoryukenAdapter#enqueue_all, which reads only response.successful and even
marks the dropped jobs successfully_enqueued.

Log each failed entry, mirroring delete_messages. enqueue_all (which calls
send_messages) now surfaces them too. The response is still returned
unchanged for callers that inspect it.
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 08ce2fa0-aae3-408f-9533-9d3635145f99

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/surface-batch-send-failures

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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.

1 participant