chore(health): minor change treating HealthInactive
This commit is contained in:
parent
2e59d3c2ea
commit
57842a53e7
@ -551,7 +551,7 @@ warpSettings foundation = defaultSettings
|
|||||||
atomically $ do
|
atomically $ do
|
||||||
results <- readTVar $ foundation ^. _appHealthReport
|
results <- readTVar $ foundation ^. _appHealthReport
|
||||||
guard $ activeChecks == Set.map (classifyHealthReport . snd) results
|
guard $ activeChecks == Set.map (classifyHealthReport . snd) results
|
||||||
guard . (/= Min HealthFailure) $ foldMap (Min . healthReportStatus . snd) results
|
guard . (== Min HealthSuccess) $ foldMap (Min . healthReportStatus . snd) results
|
||||||
notifyReady
|
notifyReady
|
||||||
| otherwise
|
| otherwise
|
||||||
-> notifyReady
|
-> notifyReady
|
||||||
|
|||||||
@ -47,8 +47,8 @@ dispatchJobSynchroniseAvs numIterations epoch iteration pause
|
|||||||
|
|
||||||
dispatchJobSynchroniseAvsId :: AvsPersonId -> Maybe Day -> JobHandler UniWorX
|
dispatchJobSynchroniseAvsId :: AvsPersonId -> Maybe Day -> JobHandler UniWorX
|
||||||
dispatchJobSynchroniseAvsId apid pause = JobHandlerException $ do
|
dispatchJobSynchroniseAvsId apid pause = JobHandlerException $ do
|
||||||
ok <- runDB $
|
ok <- runDB $ getBy (UniqueUserAvsId apid) >>=
|
||||||
getBy (UniqueUserAvsId apid) >>= \case
|
\case
|
||||||
(Just Entity{entityVal=UserAvs{userAvsUser=uid}}) -> do -- known user
|
(Just Entity{entityVal=UserAvs{userAvsUser=uid}}) -> do -- known user
|
||||||
workJobSychronizeAvs uid pause
|
workJobSychronizeAvs uid pause
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user