fix(historian): retention applock release hardening, shutdown-quiet cancellation, release tests, docs (#667 review)

This commit is contained in:
Joseph Doherty
2026-10-11 08:27:31 -04:00
parent 924eff8d3c
commit e4123ada91
4 changed files with 69 additions and 15 deletions
@@ -66,8 +66,9 @@ public sealed class HistorianRetentionService : BackgroundService
}
return true;
}
catch (OperationCanceledException) when (ct.IsCancellationRequested)
catch (Exception) when (ct.IsCancellationRequested)
{
// Shutdown: SqlClient surfaces cancellation as SqlException, not only OperationCanceledException.
return false;
}
catch (Exception ex)