Skip to content

Workflows Examples

Hera has complete feature parity with YAML as a definition language for Argo Workflows.

The examples show off features and idiomatic usage of Hera such as the Coinflip example recreated using the script decorator.

The “Upstream” collection contains examples directly from the Argo Workflows repository, such as the DAG Diamond example, to demonstrate how the YAML spec maps to Hera classes. They may not be written as idiomatic Hera code (for example, using Container when a script decorator would be preferred).

If you’d like to contribute missing examples, please see the table below and follow the Contributing Guide!

Explore the examples through the side bar!

List of missing examples

You can help by contributing these examples!

Example
artifacts-workflowtemplate
buildkit-template
ci
cluster-workflow-template/clustertemplates
conditional-parameters
conditionals
conditionals-complex
configmaps/simple-parameters-configmap
cron-backfill
daemon-step
daemoned-stateful-set-with-service
dag-coinflip
dag-conditional-artifacts
dag-continue-on-fail
dag-daemon-retry-strategy
dag-daemon-task
dag-diamond-steps
dag-disable-failFast
dag-inline-clusterworkflowtemplate
dag-inline-cronworkflow
dag-inline-workflow
dag-multiroot
data-transformations
dns-config
exit-code-output-variable
exit-handler-dag-level
exit-handler-slack
exit-handler-with-param
exit-handlers
expression-destructure-json
expression-destructure-json-complex
expression-reusing-verbose-snippets
expression-tag-template-workflow
fibonacci-seq-conditional-param
fun-with-gifs
gc-ttl
global-outputs
global-parameters-from-configmap
handle-large-output-results
hello-hybrid
hello-windows
hello-world
http-hello-world
http-success-condition
influxdb-ci
intermediate-parameters
k8s-jobs
k8s-orchestration
k8s-owner-reference
k8s-patch-json-pod
k8s-patch-merge-pod
k8s-patch-pod
k8s-wait-wf
label-value-from-workflow
loops-param-argument
loops-sequence
map-reduce
memoize-simple
nested-workflow
parallelism-nested-workflow
parameter-aggregation
parameter-aggregation-dag
parameter-aggregation-script
pod-gc-strategy
pod-gc-strategy-with-label-selector
pod-metadata
pod-metadata-wf-field
pod-spec-from-previous-step
pod-spec-patch
pod-spec-yaml-patch
recursive-for-loop
resource-flags
resubmit
retry-conditional
retry-container-to-completion
retry-on-error
retry-with-steps
scripts-bash
scripts-javascript
secrets
status-reference
step-level-timeout
steps-daemon-retry-strategy
synchronization-db-mutex-tmpl-level
synchronization-db-mutex-wf-level
synchronization-db-tmpl-level
synchronization-db-wf-level
synchronization-mutex-tmpl-level
synchronization-mutex-wf-level
synchronization-mutex-wf-level-legacy
synchronization-tmpl-level
synchronization-wf-level
template-defaults
testvolume
timeouts-step
title-and-description-with-markdown
withsequence-nested-result
work-avoidance
workflow-count-resourcequota
workflow-event-binding/event-consumer-workfloweventbinding
workflow-event-binding/github-path-filter-workfloweventbinding
workflow-event-binding/github-path-filter-workflowtemplate
workflow-template/templates

Comments