processes
(default1
) – number of processes to spawn (0
orNone
to autodetect cores)respawn
(defaultTrue
) – automatically re-spawn dead slaves in a multi-process environmentcwd
– change current working directory during daemonizationdetach
(default None; autodetect) – detach from the terminal when daemonizingfiles
preserve
(default[]
) – fileno() descriptors to avoid closingstdin
(defaultos.devnull
)stdout
(defaultos.devnull
)stderr
(defaultos.devnull
)
pid
name
(defaultNone
) – filename to store master PID inlock
(default".{0}"
) – PID lockfile template, e.g."{0}.lock"
security
uid
– switch user before daemonizinggid
– switch group before daemonizingcore
(defaultFalse
) – allow the generation of core fileschroot
– A directory to set the effective root of the subprocesses to.umask
(default0
)
logging
file
– log file when using simple configurationlevel
– default logging level for simple configurationconfiguration
– dict-based logging configuration (optional)
In a multi-process environment (where the master process simply manages the sub-processes), the master process’s logger is configured using the directives above and the child processes log to the master process. This avoids log file contention.