client.dag
The DAG captures the interconnected graph of tasks and their dependencies.
Attributes
Classes
The DAG captures the interconnected graph of tasks and their dependencies. |
Module Contents
- class client.dag.Dag(requester: jobmon.core.requester.Requester | None = None)[source]
Bases:
objectThe DAG captures the interconnected graph of tasks and their dependencies.
- add_node(node: jobmon.client.node.Node) None[source]
Add a node to this dag.
- Parameters:
node (jobmon.client.node.Node) – Node to add to the dag
- bind(chunk_size: int = 500) int[source]
Retrieve an id for a matching dag from the server.
If it doesn’t exist, first create one, including its edges.
- _is_cyclic(dag_map: Dict[jobmon.client.node.Node, Set[jobmon.client.node.Node]]) bool[source]
Return true if the nodes are cyclic.
This method is effectively a depth-first search looking for already-seen nodes, implemented using the “stack of iterators” pattern to get around Python’s recursion limit of 1000.