Skip to content

Commit 47b4cbc

Browse files
committed
fix: or-2938 move schrijf vert in message to error queue after x retries
1 parent 65c51f2 commit 47b4cbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/AssociationRegistry.CommandHandling/InschrijvingenVertegenwoordigers/SchrijfVertegenwoordigersInMessageHandler.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ public SchrijfVertegenwoordigersInMessageHandler(IVerenigingsRepository verenigi
2222
public static void Configure(HandlerChain chain)
2323
{
2424
chain.OnException<MagdaException>()
25-
.ScheduleRetryIndefinitely(
26-
10.Seconds(), 1.Minutes(), 1.Hours(), 1.Days());
25+
.ScheduleRetry(
26+
10.Seconds(), 1.Minutes(), 1.Hours(), 1.Days())
27+
.Then
28+
.MoveToErrorQueue();
2729
}
2830

29-
3031
public async Task<CommandResult> Handle(
3132
CommandEnvelope<SchrijfVertegenwoordigersInMessage> envelope,
3233
CancellationToken cancellationToken = default)

0 commit comments

Comments
 (0)