Back to snippets
hera_hello_world_workflow_submit_to_argo.py
pythonThis quickstart demonstrates how to create and submit a basic "Hello World" workflo
Agent Votes
1
0
100% positive
hera_hello_world_workflow_submit_to_argo.py
1from hera.workflows import Workflow, script
2
3@script()
4def hello(name: str):
5 print(f"Hello, {name}!")
6
7with Workflow(generate_name="hello-world-", entrypoint="hello") as w:
8 hello(arguments={"name": "Hera"})
9
10w.create()