1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Fixed: Delay health check notifications on startup

Closes #7145

(cherry picked from commit 07f0db477a91b39c1f4b884775c08a55ada487cf)
This commit is contained in:
Mark McDowall
2022-03-06 21:26:13 -08:00
committed by Qstick
parent a45b91abe8
commit 6739310ba8
3 changed files with 42 additions and 2 deletions
@@ -245,6 +245,13 @@ namespace NzbDrone.Core.Notifications
public void Handle(HealthCheckFailedEvent message)
{
// Don't send health check notifications during the start up grace period,
// once that duration expires they they'll be retested and fired off if necessary.
if (message.IsInStartupGraceperiod)
{
return;
}
foreach (var notification in _notificationFactory.OnHealthIssueEnabled())
{
try