Hera Build
The build action builds the pipeline definition in Argo YAML format. A Task is created by calling run() on the Workflow; task parameters are passed through that call.
Overview
The Hera build action compiles the workflow definition into Argo Workflows YAML format. This action prepares the pipeline for execution without actually running it.
Quick example
workflow = dh.new_workflow(
name="my-workflow",
kind="hera",
code_src="pipeline.py",
handler="pipeline"
)
run = workflow.run(
action="build"
)
Parameters
Workflow Parameters
Must be specified when creating the workflow.
| Name | Type | Description |
|---|---|---|
| project | str | Project name. Required only when creating from the library; otherwise MUST NOT be set. |
| name | str | Name that identifies the object. Required. |
| kind | str | Workflow kind. Must be hera. Required. |
| uuid | str | Object ID in UUID4 format. |
| description | str | Description of the object. |
| labels | list[str] | List of labels. |
| embedded | bool | Whether the object should be embedded in the project. |
| code_src | str | URI pointing to the source code. |
| code | str | Source code provided as plain text. |
| base64 | str | Source code encoded as base64. |
| handler | str | Function entrypoint. |
| lang | str | Source code language (informational). |
Task Parameters
Can only be specified when calling workflow.run().
| Name | Type | Description |
|---|---|---|
| action | str | Task action. Required. Must be build |
| node_selector | list[dict] | Node selector. |
| volumes | list[dict] | List of volumes. |
| resources | dict | Resource limits/requests. |
| affinity | dict | Affinity configuration. |
| tolerations | list[dict] | Tolerations. |
| envs | list[dict] | Environment variables. |
| secrets | list[str] | List of secret names. |
| profile | str | Profile template. |
Run Parameters
Can only be specified when calling workflow.run().
No specific parameters for run of this action.
Entity methods
Run methods
No runtime-specific helper methods are available for this action.