executetask¶
This module contains the following classes:
ExecuteTask
, a class to process a task;ExecuteTaskExecutionError
, andExecuteTaskInputError
, representing errors generated while processing tasks.
-
class
aeneas.executetask.
ExecuteTask
(task=None, rconf=None, logger=None)[source]¶ Execute a task, that is, compute the sync map for it.
Parameters: - task (
Task
) – the task to be executed - rconf (
RuntimeConfiguration
) – a runtime configuration - logger (
Logger
) – the logger object
-
execute
()[source]¶ Execute the task. The sync map produced will be stored inside the task object.
Raises: ExecuteTaskInputError
: if there is a problem with the input parametersRaises: ExecuteTaskExecutionError
: if there is a problem during the task execution
-
load_task
(task)[source]¶ Load the task from the given
Task
object.Parameters: task ( Task
) – the task to loadRaises: ExecuteTaskInputError
: iftask
is not an instance ofTask
- task (