client.node
A node represents an individual task within a DAG.
Attributes
Classes
A node represents an individual task within a Dag. |
Module Contents
- class client.node.Node(task_template_version: jobmon.client.task_template_version.TaskTemplateVersion, node_args: Dict[str, Any], requester: jobmon.core.requester.Requester | None = None)[source]
A node represents an individual task within a Dag.
- _hash_node_args() int[source]
A hash of the node.
The hash is the encoded result of the args and values concatenated together.
- add_upstream_node(upstream_node: Node) None[source]
Add a single node to this one’s upstream Nodes.
- Parameters:
upstream_node – node to add a dependency on
- add_upstream_nodes(upstream_nodes: List[Node]) None[source]
Add many nodes to this one’s upstream Nodes.
- Parameters:
upstream_nodes – list of nodes to add dependencies on
- add_downstream_node(downstream_node: Node) None[source]
Add a node to this one’s downstream Nodes.
- Parameters:
downstream_node – Node that will be dependent on this node