fix: do up No audit of document access in vigilcare-records-gap-analysis.md

This commit is contained in:
voltsrage
2026-06-27 15:25:18 +08:00
parent 46c3492bb9
commit 5a2e95c984
12 changed files with 220 additions and 24 deletions
@@ -136,6 +136,8 @@ public class PromotionRetryService : BackgroundService
await promotionService.PromoteAsync(batchId, approverUserId);
// --- Success path ---
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("success").Inc();
var successAttempt = new PromotionAttempt
{
Id = Guid.NewGuid(),
@@ -190,6 +192,7 @@ public class PromotionRetryService : BackgroundService
if (nextAttemptNumber < _options.MaxRetryAttempts)
{
nextRetryAt = DateTimeOffset.UtcNow.Add(delay);
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("failure").Inc();
_logger.LogInformation(
"Scheduling retry for batch {BatchId} at {NextRetryAt} " +
@@ -199,7 +202,8 @@ public class PromotionRetryService : BackgroundService
}
else
{
// Exhausted all retries — manual intervention required
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("exhausted").Inc();
_logger.LogCritical(
"Batch {BatchId} has exhausted all {Max} retry attempts. " +
"Manual intervention required. Last error: {Error}",