Remove message retry configuration in DispatchWorkflowRequestConsumer.

This ensures a workflow is not executed multiple times in case of an unhandled exception.
This commit is contained in:
Sipke Schoorstra 2025-03-17 10:14:05 +01:00
parent a04aaf69e8
commit a835eb82ed
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F

View file

@ -21,7 +21,6 @@ public class DispatchWorkflowRequestConsumerDefinition : ConsumerDefinition<Disp
/// <inheritdoc />
protected override void ConfigureConsumer(IReceiveEndpointConfigurator endpointConfigurator, IConsumerConfigurator<DispatchWorkflowRequestConsumer> consumerConfigurator, IRegistrationContext context)
{
endpointConfigurator.UseMessageRetry(r => r.Interval(5, 1000));
endpointConfigurator.UseInMemoryOutbox(context);
}
}