Skip to content

Commit

Permalink
Fix for combo of endpoint policies and external message table publish…
Browse files Browse the repository at this point in the history
…ing. Closes GH-1212
  • Loading branch information
jeremydmiller committed Jan 13, 2025
1 parent ac59566 commit 6e5406b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public async Task can_create_basic_table()
.UseWolverine(opts =>
{
opts.UsePostgresqlPersistenceAndTransport(Servers.PostgresConnectionString, "external");

opts.Policies.UseDurableLocalQueues();
}).StartAsync();

var storage = host.Services.GetRequiredService<IMessageStore>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public ExternalMessageTableListener(ExternalMessageTable messageTable, IWolverin
{
durable.ShouldPersistBeforeProcessing = false;
}
else if (receiver is ReceiverWithRules { Inner: DurableReceiver inner })
{
inner.ShouldPersistBeforeProcessing = false;
}

_cancellation = CancellationTokenSource.CreateLinkedTokenSource(_runtimeOptions.Durability.Cancellation);

Expand Down

0 comments on commit 6e5406b

Please sign in to comment.