From d2b291088d027e94f3579ce7602457f8ab141d94 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 23 Jan 2014 16:57:49 -0400 Subject: fix delay of daily sanity check (hacked for testing and accidentially committed) --- Assistant/Threads/SanityChecker.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Assistant/Threads') diff --git a/Assistant/Threads/SanityChecker.hs b/Assistant/Threads/SanityChecker.hs index aa7d4ff19..827a17139 100644 --- a/Assistant/Threads/SanityChecker.hs +++ b/Assistant/Threads/SanityChecker.hs @@ -95,11 +95,11 @@ sanityCheckerHourlyThread = namedThread "SanityCheckerHourly" $ forever $ do {- This thread wakes up daily to make sure the tree is in good shape. -} sanityCheckerDailyThread :: UrlRenderer -> NamedThread sanityCheckerDailyThread urlrenderer = namedThread "SanityCheckerDaily" $ forever $ do + waitForNextCheck + debug ["starting sanity check"] void $ alertWhile sanityCheckAlert go debug ["sanity check complete"] - waitForNextCheck - where go = do modifyDaemonStatus_ $ \s -> s { sanityCheckRunning = True } -- cgit v1.2.3