Suspend
The hera.workflows.suspend module provides the Suspend class.
The Suspend template in Hera provides a convenience wrapper around the “Intermediate Parameters” Argo feature.
Note
- See https://argoproj.github.io/argo-workflows/walk-through/suspending for more on suspending.
- See https://argoproj.github.io/argo-workflows/intermediate-inputs for more on intermediate parameters.
Suspend
The Suspend template allows the user to pause a workflow for a specified length of time.
The workflow can pause based on the given by duration or indefinitely (i.e. until manually resumed).
The Suspend template also allows you to specify intermediate_parameters which will replicate the given
parameters to the “inputs” and “outputs” of the template, resulting in a Suspend template that pauses and
waits for values from the user for the given list of parameters.
Source code in src/hera/workflows/suspend.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. |