Refactored batch drop logic #27

Merged
khwezi merged 1 commits from emailjobs into master 2026-05-16 00:05:52 +02:00
Showing only changes of commit 1471d9e597 - Show all commits
@@ -27,7 +27,7 @@ public class ProcessEmailNotificationsEventHandler(IDbContextFactory<ShopDbConte
foreach (var notification in notifications) foreach (var notification in notifications)
{ {
if (dropBatch || cancellationToken.IsCancellationRequested) break; if (dropBatch) break;
var sendResult = await SendEmailAsync(notification,emailService, cancellationToken); var sendResult = await SendEmailAsync(notification,emailService, cancellationToken);