fix(health): more generous healthchecks

This commit is contained in:
Gregor Kleen 2020-04-21 10:51:45 +02:00
parent e8c2dc5aaa
commit 466203d866
2 changed files with 2 additions and 2 deletions

View File

@ -502,7 +502,7 @@ appMain = runResourceT $ do
where
go :: Maybe (Set (UTCTime, HealthReport)) -> m' a
go pResults = do
let delay = floor $ wInterval % 2
let delay = floor $ wInterval % 4
d <- liftIO $ newDelay delay
$logDebugS "Notify" $ "Waiting up to " <> tshow delay <> "µs..."

View File

@ -90,5 +90,5 @@ healthReportStatus = \case
HealthSMTPConnect (Just False) -> HealthFailure
HealthWidgetMemcached (Just False) -> HealthFailure -- TODO: investigate this failure mode; do we just handle it gracefully?
HealthActiveJobExecutors (Just prop )
| prop < 1 -> HealthFailure
| prop <= 0 -> HealthFailure
_other -> maxBound -- Minimum badness