Dag
The hera.workflows.dag module provides the DAG class.
See https://argoproj.github.io/argo-workflows/walk-through/dag for more on DAGs (Directed Acyclic Graphs) in Argo Workflows.
DAG
A DAG template invocator is used to define Task dependencies as an acyclic graph.
DAG implements the contextmanager interface so allows usage of with, under which any Task
objects instantiated will be added to the DAG’s list of Tasks.
See the DAG examples for usage.
Source code in src/hera/workflows/dag.py
get_artifact
Finds and returns the artifact with the supplied name.
Note that this method will raise an error if the artifact is not found.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
name of the input artifact to find and return. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Artifact |
Artifact
|
the artifact with the supplied name. |
Raises:
| Type | Description |
|---|---|
KeyError
|
if the artifact is not found. |
Source code in src/hera/workflows/_mixins.py
get_parameter
Finds and returns the parameter with the supplied name.
Note that this method will raise an error if the parameter is not found.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
name of the input parameter to find and return. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Parameter |
Parameter
|
the parameter with the supplied name. |
Raises:
| Type | Description |
|---|---|
KeyError
|
if the parameter is not found. |