WorkerPopen

class ClusterShell.Worker.Popen.WorkerPopen(command, key=None, handler=None, stderr=False, timeout=-1, autoclose=False)

Implements the Popen Worker.

__init__(command, key=None, handler=None, stderr=False, timeout=-1, autoclose=False)

Initialize Popen worker.

retcode()

Return return code or None if command is still in progress.

class ClusterShell.Worker.Popen.PopenClient(worker, key, stderr, timeout, autoclose)
__init__(worker, key, stderr, timeout, autoclose)

EngineClient initializer.

Should be called from derived classes.

Arguments:

worker -- parent worker instance key -- client key used by MsgTree (eg. node name) stderr -- boolean set if stderr is on a separate stream timeout -- client execution timeout value (float) autoclose -- boolean set to indicate whether this engine

client should be aborted as soon as all other non-autoclosing clients have finished.