vk08/20/2022, 8:18 PM
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 Hale08/20/2022, 9:01 PM
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.
@Flo() def my_flow(): result = task1() if result == 1: task2() elif result == 2: task3() else: task4()
Ben Muller08/21/2022, 1:38 AM
Jeff Hale08/21/2022, 12:14 PM
d = transform.fn(data="some argument")