System-level utilities and helper functions.
Bases: exceptions.Exception
Bases: exceptions.Exception
Bases: exceptions.Exception
Bases: object
Resource limits on a process.
Attributes:
This object can be used for the prlimit parameter of execute().
Create a list of arguments for the prlimit command line.
Bases: exceptions.Exception
Helper method to shell out and execute a command through subprocess.
Allows optional retry.
Parameters: |
|
---|---|
Returns: | (stdout, stderr) from process execution |
Raises: | UnknownArgumentError on receiving unknown arguments |
Raises: | |
Raises: | OSError |
The prlimit parameter can be used to set resource limits on the child process. If this parameter is used, the child process will be spawned by a wrapper process which will set limits before spawning the command.
Utility to get the default worker count.
A wrapper around execute() to more easily handle warnings and errors.
Returns an (out, err) tuple of strings containing the output of the command’s stdout and stderr. If ‘err’ is not empty then the command can be considered to have failed.