fix(health): more generous healthchecks
This commit is contained in:
parent
e8c2dc5aaa
commit
466203d866
@ -502,7 +502,7 @@ appMain = runResourceT $ do
|
|||||||
where
|
where
|
||||||
go :: Maybe (Set (UTCTime, HealthReport)) -> m' a
|
go :: Maybe (Set (UTCTime, HealthReport)) -> m' a
|
||||||
go pResults = do
|
go pResults = do
|
||||||
let delay = floor $ wInterval % 2
|
let delay = floor $ wInterval % 4
|
||||||
d <- liftIO $ newDelay delay
|
d <- liftIO $ newDelay delay
|
||||||
|
|
||||||
$logDebugS "Notify" $ "Waiting up to " <> tshow delay <> "µs..."
|
$logDebugS "Notify" $ "Waiting up to " <> tshow delay <> "µs..."
|
||||||
|
|||||||
@ -90,5 +90,5 @@ healthReportStatus = \case
|
|||||||
HealthSMTPConnect (Just False) -> HealthFailure
|
HealthSMTPConnect (Just False) -> HealthFailure
|
||||||
HealthWidgetMemcached (Just False) -> HealthFailure -- TODO: investigate this failure mode; do we just handle it gracefully?
|
HealthWidgetMemcached (Just False) -> HealthFailure -- TODO: investigate this failure mode; do we just handle it gracefully?
|
||||||
HealthActiveJobExecutors (Just prop )
|
HealthActiveJobExecutors (Just prop )
|
||||||
| prop < 1 -> HealthFailure
|
| prop <= 0 -> HealthFailure
|
||||||
_other -> maxBound -- Minimum badness
|
_other -> maxBound -- Minimum badness
|
||||||
|
|||||||
Reference in New Issue
Block a user