-
The Hera version 5.1.3 examples do not seem to provide the equivalent of I tried the following direct adaptation from hera.workflows import Workflow, Task
def hello():
print("Hello, Hera!")
with Workflow(generate_name="hello-world-") as w:
Task(name="pythonprint", hello)
w.create() that alas fails with Additionally it seems that
Any hint ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@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() |
Beta Was this translation helpful? Give feedback.
-
Thanks @samj1912. Indeed, the syntax did change a lot from 4.4.2. |
Beta Was this translation helpful? Give feedback.
@EricBoix You can find a simple example at https://hera.readthedocs.io/en/stable/examples/workflows/global_config/
It can be shortened to -