Skip to content

describe-routing and describe show no routes for locally handled messages under ServerlessWithOutbox #6122

Backlog

Description

@jeremydmiller

Follow-up to #6117 (PR #6121).

wolverine-diagnostics describe-routing and describe start Wolverine in lightweight (metadata-only) mode, which forces DurabilityMode.MediatorOnly. #6121 made that start assign the local queues when the application itself runs in Balanced or Solo mode, so locally handled messages now describe the routes they really get. It deliberately left ServerlessWithOutbox out, and such an application still describes no routes for every message type it handles locally.

What happens

At run time under ServerlessWithOutbox there are no local queues. A locally handled message routes to the durability pass inbox (DurabilityPassInbox, destination TransportConstants.DurableLocalUri), which LocalRouting.FindRoutes returns through runtime.PassInbox.ConventionalRoutesFor(messageType) (GH-5046, covered by PostgresqlTests.serverless_with_outbox_local_messages_5046).

The lightweight start never reaches the ServerlessWithOutbox branch of WolverineRuntime.StartAsync, so startDurabilityPassInboxAsync never runs and PassInbox stays null. LocalRouting then falls through to the local queue assignments, which are empty, and produces nothing.

Probe on main after #6121: a lightweight start (DynamicCodeBuilder.WithinCodegenCommand = true) of an application with opts.Durability.Mode = DurabilityMode.ServerlessWithOutbox and one handler. RoutingFor(message).Routes is empty, and ExplainRoutingFor shows LocalRouting producing 0 routes.

Expected

The route the message gets at run time: the durability pass inbox (durable-local). --explain should show LocalRouting producing it. An application that turned conventional local routing off should still describe none, as at run time (routesHandledMessageTypes).

Notes

  • The application's own durability mode is now remembered as WolverineRuntime._applicationDurabilityMode (set in applyLightweightMode(), updated by async extensions), and discoverLocalQueuesForLightweightDescription() is where the lightweight start decides what to describe.
  • Building the real DurabilityPassInbox in lightweight mode would register a sending agent and needs the message store. A description-only route to DurableLocalUri may be enough, as long as nothing in a lightweight run can send through it.
  • Serverless (no outbox) correctly describes no local routes: it removes the local transport and disables conventional local routing.

Activity

  1. added this to the 7.0 milestone on Dec 2, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions