toil.test.batchSystems.parasolTestSupport

Module Contents

Classes

ParasolTestSupport

For test cases that need a running Parasol leader and worker on the local host

Attributes

log

toil.test.batchSystems.parasolTestSupport.log[source]
class toil.test.batchSystems.parasolTestSupport.ParasolTestSupport[source]

For test cases that need a running Parasol leader and worker on the local host

class ParasolThread[source]

Bases: threading.Thread

digraph inheritanceb721614fde { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ParasolThread" [URL="#toil.test.batchSystems.parasolTestSupport.ParasolTestSupport.ParasolThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Thread" -> "ParasolThread" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Thread" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class that represents a thread of control."]; }

A class that represents a thread of control.

This class can be safely subclassed in a limited fashion. There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a subclass.

lock
abstract parasolCommand()[source]
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

class ParasolLeaderThread[source]

Bases: ParasolTestSupport.ParasolThread

digraph inheritancece629a175e { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ParasolLeaderThread" [URL="#toil.test.batchSystems.parasolTestSupport.ParasolTestSupport.ParasolLeaderThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ParasolThread" -> "ParasolLeaderThread" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ParasolThread" [URL="#toil.test.batchSystems.parasolTestSupport.ParasolTestSupport.ParasolThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Thread" -> "ParasolThread" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Thread" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class that represents a thread of control."]; }

A class that represents a thread of control.

This class can be safely subclassed in a limited fashion. There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a subclass.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

parasolCommand()[source]
class ParasolWorkerThread[source]

Bases: ParasolTestSupport.ParasolThread

digraph inheritanceb3e5fd7852 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ParasolThread" [URL="#toil.test.batchSystems.parasolTestSupport.ParasolTestSupport.ParasolThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Thread" -> "ParasolThread" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ParasolWorkerThread" [URL="#toil.test.batchSystems.parasolTestSupport.ParasolTestSupport.ParasolWorkerThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ParasolThread" -> "ParasolWorkerThread" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Thread" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class that represents a thread of control."]; }

A class that represents a thread of control.

This class can be safely subclassed in a limited fashion. There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a subclass.

parasolCommand()[source]