The parameters of a process to be restarted.

Instance Variable args command-line arguments (including name of command as first one) (type: list)
Instance Variable uid user-id to run process as, or None (which means inherit uid) (type: int)
Instance Variable gid group-id to run process as, or None (which means inherit gid) (type: int)
Instance Variable env environment for process (type: dict)
Instance Variable cwd initial working directory for process or None (which means inherit cwd) (type: str)
Method toTuple Convert process to tuple.
args =
command-line arguments (including name of command as first one) (type: list)
uid =
user-id to run process as, or None (which means inherit uid) (type: int)
gid =
group-id to run process as, or None (which means inherit gid) (type: int)
env =
environment for process (type: dict)
cwd =
initial working directory for process or None (which means inherit cwd) (type: str)
@deprecate.deprecated(incremental.Version('Twisted', 18, 7, 0))
def toTuple(self):

Convert process to tuple.

Convert process to tuple that looks like the legacy structure of processes, for potential users who inspected processes directly.

This was only an accidental feature, and will be removed. If you need to remember what processes were added to a process monitor, keep track of that when they are added. The process list inside the process monitor is no longer a public API.

This allows changing the internal structure of the process list, when warranted by bug fixes or additional features.

Returnstuple representation of process
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.