Skip to content

Hello_hera.py for version 5.1.3 ? #581

Closed Answered by sambhav
EricBoix asked this question in Q&A
Discussion options

You must be logged in to vote

@EricBoix You can find a simple example at https://hera.readthedocs.io/en/stable/examples/workflows/global_config/

It can be shortened to -

from hera.workflows import Workflow, script

@script()
def say():
    print("hello")


with Workflow(generate_name="hello-", entrypoint="say") as w:
    say()
w.create()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sambhav
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants