Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Maintain a stable ordering for health-check queue.

nzbdav-dev3928c14558a1
diff --git a/backend/Services/HealthCheckService.cs b/backend/Services/HealthCheckService.cs
index e197532e..870bcfbe 100644
--- a/backend/Services/HealthCheckService.cs
+++ b/backend/Services/HealthCheckService.cs
@@ -93,7 +93,8 @@ public class HealthCheckService
.Where(x => x.Type == DavItem.ItemType.NzbFile || x.Type == DavItem.ItemType.RarFile)
.Where(x => !healthCheckResults.Any(h => h.DavItemId == x.Id && h.RepairStatus == actionNeeded))
.OrderBy(x => x.NextHealthCheck)
- .ThenByDescending(x => x.ReleaseDate);
+ .ThenByDescending(x => x.ReleaseDate)
+ .ThenBy(x => x.Id);
}
private async Task<bool> PerformHealthCheck