server.web.routes.v2.cli.task
Routes for Tasks.
Attributes
Functions
|
Get the status of a task. |
|
Used to get the sub dag of a given task. |
|
Update the status of the tasks. |
|
Get task's downstream and upstream tasks and their status. |
|
Get all input task_ids'. |
|
Return the resource usage for a given Task ID. |
|
Get all input task_ids'. |
|
|
|
Get all upstream nodes of a node. |
|
Get all descendants of a given nodes. |
|
Get task ids of the given node ids. |
|
Get only the direct downstreams of a task. |
|
Get information about TaskInstances associated with specific Task ID. |
|
Get status of Task from Task ID. |
Module Contents
- server.web.routes.v2.cli.task.get_task_subdag() Any[source]
Used to get the sub dag of a given task.
It returns a list of sub tasks as well as a list of sub nodes.
- server.web.routes.v2.cli.task.get_task_dependencies(task_id: int) Any[source]
Get task’s downstream and upstream tasks and their status.
- server.web.routes.v2.cli.task.get_tasks_recursive(direction: str) Any[source]
Get all input task_ids’.
Either downstream or upsteam tasks based on direction; return all recursive(including input set) task_ids in the defined direction.
- server.web.routes.v2.cli.task.get_task_resource_usage() Any[source]
Return the resource usage for a given Task ID.
- server.web.routes.v2.cli.task._get_tasks_recursive(task_ids: Set[int], direction: jobmon.core.constants.Direction, session: sqlalchemy.orm.Session) set[source]
Get all input task_ids’.
Either downstream or upsteam tasks based on direction; return all recursive(including input set) task_ids in the defined direction.
- server.web.routes.v2.cli.task._get_dag_and_wf_id(task_id: int, session: sqlalchemy.orm.Session) tuple[source]
- server.web.routes.v2.cli.task._get_node_dependencies(nodes: set, dag_id: int, session: sqlalchemy.orm.Session, direction: jobmon.core.constants.Direction) Set[int][source]
Get all upstream nodes of a node.
- server.web.routes.v2.cli.task._get_subdag(node_ids: list, dag_id: int, session: sqlalchemy.orm.Session) list[source]
Get all descendants of a given nodes.
It only queries the primary keys on the edge table without join.
- server.web.routes.v2.cli.task._get_tasks_from_nodes(workflow_id: int, nodes: List, task_status: List, session: sqlalchemy.orm.Session) dict[source]
Get task ids of the given node ids.
- server.web.routes.v2.cli.task.get_downstream_tasks() Any[source]
Get only the direct downstreams of a task.