SCons.Job.Serial

Package SCons :: Module Job :: Class Serial |
[hide private]
[frames] | no frames]

# Class Serial

source code

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.

Instance Methods | [hide private]
__init__(self, taskmaster) Create a new serial job given a taskmaster. | source code
start(self) Start the job. | source code
cleanup(self) | source code

Method Details | [hide private]

### __init__(self, taskmaster) (Constructor) | source code
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(self) | source code
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.