Home | Trees | Indices | Help |
|
---|
|
object --+ | Serial
This class is used to execute tasks in series, and is more efficient than Parallel, but is only appropriate for non-parallel builds. Only one instance of this class should be in existence at a time. This class is not thread safe.
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Create a new serial job given a taskmaster. The taskmaster's next_task() method should return the next task that needs to be executed, or None if there are no more tasks. The taskmaster's executed() method will be called for each task when it is successfully executed or failed() will be called if it failed to execute (e.g. execute() raised an exception).
|
Start the job. This will begin pulling tasks from the taskmaster and executing them, and return when there are no more tasks. If a task fails to execute (i.e. execute() raises an exception), then the job will stop. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jun 14 22:07:44 2010 | http://epydoc.sourceforge.net |