From 8ee62dd1853538ce843dbd80ecac9c6725b4c59a Mon Sep 17 00:00:00 2001 From: emalfroy Date: Thu, 29 Aug 2024 10:18:19 +0200 Subject: [PATCH] fix: or-2386 use cancelationtoken.none for initial adresmatch --- .../AdresMatch/AdresMatchController.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/AssociationRegistry.Admin.Api/AdresMatch/AdresMatchController.cs b/src/AssociationRegistry.Admin.Api/AdresMatch/AdresMatchController.cs index cc654a3c4..e0283ef12 100644 --- a/src/AssociationRegistry.Admin.Api/AdresMatch/AdresMatchController.cs +++ b/src/AssociationRegistry.Admin.Api/AdresMatch/AdresMatchController.cs @@ -6,8 +6,6 @@ using Marten; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Polly; -using Polly.Retry; using Schema.Detail; [ApiVersion("1.0")] @@ -41,10 +39,9 @@ public async Task QueueAdressenForAdresMatch( { try { - await Policy - .Handle() - .WaitAndRetryAsync(5, retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))) - .ExecuteAsync(() => handler.Handle(message, cancellationToken)); + await handler.Handle(message, CancellationToken.None); + + logger.LogInformation($"Te adresmatchen vCode:{message.VCode} met locatie: {message.LocatieId} is succesvol verwerkt"); succeededMessages++; }