Skip to content

Conversation

@realLiangshiwei
Copy link
Contributor

@realLiangshiwei realLiangshiwei commented Jul 30, 2025

Description

Reslves: #23412

By default or when AutoCompleteMessages is set to true, the processor will complete the message after executing the message handler

Because ABP handles the error without throwing an exception, Azure Service Bus will think the message has been completed and will not return it to the queue, we need to set AutoCompleteMessages to false by default.

After the maximum number of retries, the message will be discarded, users can consider using the Outbox/Inbox

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

Create an app to use Azure Service Bus and throw an exception in the event handler.

@maliming maliming self-requested a review July 30, 2025 02:45
@maliming maliming added this to the 10.0-preview milestone Jul 30, 2025
@maliming maliming merged commit 3085626 into abpframework:dev Jul 30, 2025
2 checks passed
@realLiangshiwei realLiangshiwei deleted the liangshiwei/azureservicebus branch July 30, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants