Skip to content

UseDurableOutboxOnAllSendingEndpoints not working for EF Core #2599

Closed

Description

@mahmudabir

Describe the bug
Outbox for EF Core does not work as expected. I tried but couldn't find the reason.
UseDurableOutboxOnAllSendingEndpoints does not save any data in wolverine_outgoing_envelopes table.

dotnet run -- describe shows that the message is durable.
Image

but it does not take part in the outbox (note only Task item is shown as saved in the log).
Image

If the RabbitMQ is stopped the message is discarded.

To Reproduce
Steps to reproduce the behavior:

  1. Clone WolverineOutboxTest repo
  2. From Root directory run docker-compose.yml to start RabbitMQ and PostgreSQL and dotnet ef database update to apply migrations
  3. After running use swagger to post data
  4. Check wolverine_outgoing_envelopes table. The message sits there (indefinitely?).

Expected behavior
EFCore + Outbox should work with UseDurableOutboxOnAllSendingEndpoints.

Activity

  1. BlackChepo commented on Apr 27, 2026

    @BlackChepo
    Contributor

    Looks like a duplicate of #2588, fixed on main in 113628d (PR #2596) on 2026-04-26 — three days after 5.32.1 was released, which explains why you're still seeing it.

    Your config (EF Core + Postgres + RabbitMQ + UseConventionalRouting() + UseDurableOutboxOnAllSendingEndpoints() + a registered handler) matches the failing scenario exactly.
    Root cause: when a handler is registered, conventional routing pre-compiles the sender exchange before DiscoverSenders runs, so the AllSenders policy short-circuits on
    e.Subscriptions.Any() and the endpoint stays BufferedInMemory. describe shows the route but not the actual mode, which is why it looks durable but isn't.

    Regression test for your exact setup: Bug_2588_ef_core_durable_outbox_with_conventional_routing.cs.

  2. jeremydmiller commented on Apr 27, 2026

    @jeremydmiller
    Member

    This did turn out to be a duplicate. Fix coming in just a couple hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions