🎉 New Pull Request to ag2ai/faststream by @Vitaly312
✨ fix: apply ack_policy if error occurs before handler (in middleware/parser) (#3272)
📊 +70/-21
🌿 Vitaly312:fix/ack-policy-before-handler → main
DESCRIPTION
AcknowledgementMiddleware now applies ack_policy even when the error happens
before the handler: in on_receive, a custom parser, a filter, or when no
suitable handler is found.
If consume_scope was never reached, the middleware builds the message lazily
with the subscriber's default parser (not the custom one) right before
ack/nack/reject. This also covers AckMessage/NackMessage/RejectMessage raised from on_receive.
If the default parser fails too, the error is logged at CRITICAL level.
Fixes #3267
Type of change
☑️ Bug fix (a non-breaking change that resolves an issue)
Checklist
☑️ My code adheres to the style guidelines of this project (just lint shows no errors)
☑️ I have conducted a self-review of my own code
☑️ I have added tests to validate the effectiveness of my fix
☑️ Both new and existing unit tests pass successfully on my local environment by running just test-coverage
☑️ I have ensured that static analysis tests are passing by running just static-analysis
sent via relator
🎉 New Pull Request to faststream-community/dishka-faststream by @dependabot[bot]
✨ chore(deps): bump the github-actions group with 4 updates (#63)
📊 +7/-7
🌿 faststream-community:dependabot/github_actions/github-actions-690331a4ce → main
#dependencies #github_actions
sent via relator
- N G
А A N A
N A