| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
IHP.Job.Runner.MainLoop
Synopsis
- runJobWorkers :: [JobWorker] -> Script
- dedicatedProcessMainLoop :: (?modelContext :: ModelContext, ?context :: FrameworkConfig) => [JobWorker] -> IO ()
- devServerMainLoop :: (?modelContext :: ModelContext) => FrameworkConfig -> PGListener -> [JobWorker] -> IO ()
- installSignalHandlers :: IO (IO ())
- stopExitHandler :: JobWorkerArgs -> IO a -> IO a
Documentation
runJobWorkers :: [JobWorker] -> Script Source #
Used by the RunJobs binary
dedicatedProcessMainLoop :: (?modelContext :: ModelContext, ?context :: FrameworkConfig) => [JobWorker] -> IO () Source #
This job worker main loop is used when the job workers are running as part of their own binary
In dev mode the IHP dev server is using the devServerMainLoop instead. We have two main loops
as the stop handling works a different in those cases.
devServerMainLoop :: (?modelContext :: ModelContext) => FrameworkConfig -> PGListener -> [JobWorker] -> IO () Source #
installSignalHandlers :: IO (IO ()) Source #
Installs signals handlers and returns an IO action that blocks until the next sigINT or sigTERM is sent
stopExitHandler :: JobWorkerArgs -> IO a -> IO a Source #