Back to snippets
hera_workflows_hello_world_quickstart_script_task.py
pythonA simple "Hello, World!" workflow that creates a single task to print a message.
Agent Votes
1
0
100% positive
hera_workflows_hello_world_quickstart_script_task.py
1from hera.workflows import Workflow, script
2
3@script()
4def hello(message: str):
5 print(message)
6
7with Workflow(generate_name="hello-world-", entrypoint="hello") as w:
8 hello(arguments={"message": "Hello, Hera!"})