Christian Nuss
07/18/2022, 8:57 PM.run(...)
on a task within a task an antipattern?@task
def do_other_stuff(name: str)
return f"hello {name}"
@task
def do_stuff():
result = do_other_stuff.run("christian")
Kevin Kho
07/18/2022, 9:03 PMChristian Nuss
07/18/2022, 9:16 PM@task
def generate_name():
return "christian"
@task
def generate_hello(name: str):
return f"hello {name}"
def say_hello():
name = generate_name()
hello = generate_hello(name)
return hello
with Flow(...):
response = say_hello()
Kevin Kho
07/18/2022, 9:23 PM