Templates Controller¶
- class genomcore.controllers.task.Task(task)¶
Bases:
object- property idtask¶
- property idversion¶
- property app_version¶
- property app_name¶
- property reserved_parameters¶
- property parameters¶
- property to_dict¶
- get_reserved_parameters() Dict[str, Any]¶
- set_reserved_parameter(name, value, strict=True)¶
- _validate_reserved_params()¶
Check if all reserved parameters have a value different than None, if not, return a False.
- set_reserved_parameters(params: Dict[str, str], strict=True)¶
- __firstlineno__ = 15¶
- __static_attributes__ = ('_task',)¶
- class genomcore.controllers.task.TaskController(*args, **kwargs)¶
Bases:
BaseController- run_child_task(task: Task)¶
Run children task.
- Parameters:
task (Task) – Task to run.
- Returns:
response of request
- Return type:
Response (dict)
- get_task_children(idtask: str)¶
Get all children task.
- run_workflow(task_group_data: dict, idproject: int)¶
Run a new workflow. :param task_group_data: json workflow srtuct. :type task_group_data: string :param idproject: project id :type idproject: int
- Return:
dict: with the struct run workflow
- __annotations__ = {}¶
- __firstlineno__ = 91¶
- __static_attributes__ = ('_requester',)¶