mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Auto-refresh content
This commit is contained in:
parent
dd375bbbc1
commit
30b6d57f5c
@ -170,6 +170,12 @@ makeFoundation useEcho conf = do
|
||||
"master"
|
||||
loadWebsiteContent
|
||||
|
||||
-- Temporary workaround to force content updates regularly, until
|
||||
-- distribution of webhooks is handled via consul
|
||||
void $ forkIO $ forever $ void $ tryAny $ do
|
||||
threadDelay $ 1000 * 1000 * 60 * 20
|
||||
grRefresh websiteContent'
|
||||
|
||||
env <- getEnvironment
|
||||
|
||||
let runDB' :: (MonadIO m, MonadBaseControl IO m) => SqlPersistT m a -> m a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user