Suspend Template Note This example is a replication of an Argo Workflow example in Hera. The upstream example can be found here. HeraYAML 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16from hera.workflows import Container, Steps, Suspend, Workflow with Workflow( generate_name="suspend-template-", entrypoint="suspend", ) as w: hello_world = Container(name="hello-world", image="busybox", command=["echo"], args=["hello world"]) approve = Suspend(name="approve") delay = Suspend(name="delay", duration=20) with Steps(name="suspend"): hello_world(name="build") approve() delay() hello_world(name="release") 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: suspend-template- spec: entrypoint: suspend templates: - name: hello-world container: image: busybox args: - hello world command: - echo - name: approve suspend: {} - name: delay suspend: duration: '20' - name: suspend steps: - - name: build template: hello-world - - name: approve template: approve - - name: delay template: delay - - name: release template: hello-world Comments