hercules-ci-agent-0.10.4: Runs Continuous Integration tasks on your machines
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.Agent.WorkerProcess

Synopsis

Documentation

runWorker Source #

Arguments

:: (Binary command, Binary event, MonadUnliftIO m, MonadThrow m) 
=> WorkerConfig

Extra Nix options, and other "env" values

-> CreateProcess

Process invocation details. Will ignore std_in, std_out and std_err fields.

-> (Int -> ByteString -> m ()) 
-> Chan (Maybe command) 
-> (event -> m ()) 
-> m ExitCode 

Control a child process by communicating over stdin and stdout using a Binary interface.

data WorkerEnvSettings Source #

Constructors

WorkerEnvSettings 

Fields

modifyEnv :: WorkerEnvSettings -> Map [Char] [Char] -> Map [Char] [Char] Source #

Filter out impure env vars by wildcard, set NIX_PATH