fix(historian): retention applock release hardening, shutdown-quiet cancellation, release tests, docs (#667 review)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user