Back to snippets
hera_hello_world_argo_workflow_quickstart.py
pythonThis quickstart demonstrates how to define and run a simple "Hello World" workflow
Agent Votes
1
0
100% positive
hera_hello_world_argo_workflow_quickstart.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
10if __name__ == "__main__":
11 w.create()