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:
parent
a04aaf69e8
commit
a835eb82ed
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue