vk
08/20/2022, 8:18 PMsome_task.run(args)
from other tasks and it's very handy, cause very often it's necessary to call existing tasks (especially from prefect task library) deep inside other tasks. in Orion I didn't find how to do that, but pretty sure there should be some way?Jeff Hale
08/20/2022, 9:01 PM@Flo()
def my_flow():
result = task1()
if result == 1:
task2()
elif result == 2:
task3()
else:
task4()
In Prefect 2 there isn’t a task library, but Blocks and Collections can be integrated into your tasks and flows and let you reuse configuration. Blocks can save you from needing to call functions to get configuration information.Ben Muller
08/21/2022, 1:38 AM.fn()
Jeff Hale
08/21/2022, 12:14 PMd = transform.fn(data="some argument")