This module keeps a collection of tasks that have varying preconditions, postconditions and conflicts and executes these tasks as their given conditions allow.
More...
|
def | on_activate (self) |
| Initialise task runner.
|
|
def | on_deactivate (self) |
| Shut down task runner.
|
|
def | loadTasks (self) |
| Load all tasks specified in the configuration. More...
|
|
def | registerTask (self, task) |
| Add a task from an external source (i.e. More...
|
|
def | checkTasksInModel (self) |
| Check all loaded tasks for consistency and completeness of dependencies.
|
|
def | modelChanged (self, parent, first, last) |
| React to model changes (right now debug only)
|
|
def | startTaskByIndex (self, index) |
| Try starting a task identified by its list index. More...
|
|
def | startTaskByName (self, taskname) |
| Try starting a task identified by its configured name. More...
|
|
def | startTask (self, task) |
| Try starting a task identified by its task dictionary. More...
|
|
def | pauseTaskByIndex (self, index) |
| Try pausing a task identified by its list index. More...
|
|
def | pauseTaskByName (self, taskname) |
| Try pausing a task identified by its configured name. More...
|
|
def | pauseTask (self, task) |
| Actually Pause the Task. More...
|
|
def | stopTaskByIndex (self, index) |
| Try stopping a task identified by its list index. More...
|
|
def | stopTaskByName (self, taskname) |
| Try stopping a task identified by its configured name. More...
|
|
def | stopTask (self, task) |
|
def | getTaskByName (self, taskname) |
| Get task dictionary for a given task name. More...
|
|
def | getTaskByReference (self, ref) |
| Get task dictionary by the identity of its task object. More...
|
|
def | getModule (self, taskname, modname) |
| Get a reference to a module that is in a task's requied module list. More...
|
|
def | resumePauseTasks (self, ref) |
| Try resuming all tasks paused by the given task. More...
|
|
def | postRunPPTasks (self, ref) |
| Try executing post action for preposttasks associated with a given task. More...
|
|
def | preRunPPTasks (self, ref) |
| Try running pre action of preposttask associated with given task. More...
|
|
def | pausePauseTasks (self, ref) |
| Try pausing tasks required for starting a given task. More...
|
|
This module keeps a collection of tasks that have varying preconditions, postconditions and conflicts and executes these tasks as their given conditions allow.
def taskrunner.TaskRunner.registerTask |
( |
|
self, |
|
|
|
task |
|
) |
| |
Add a task from an external source (i.e.
not loaded by task runner) to task runner.
@param dict task: dictionary describing a task to register
@return bool: whether registering tasks succeeded
task dict bool loading checks passed obj refernece to task object str unoque name of task str module name of task module [str] preposttasks: pre/post execution tasks for this task [str] pausetasks: this stuff needs to be paused before task can run dict task needs these modules dict extra configuration