Marie
06/11/2021, 2:04 PMbind
a few different ways without being able to separate the outputs of the first task (see simple example below). Does anyone know how to do this? Thanks!
flow = prefect.Flow("example-flow")
flow.add_task(task_a) # Task A returns 2 outputs
flow.add_task(task_b) # Task B uses the first output of task A
flow.add_task(task_c) # Task C uses the first output of task A
task_b.bind(job=task_a, flow=flow)
task_c.bind(report=task_a, flow=flow)
Jenny
06/11/2021, 2:22 PMMarie
06/11/2021, 2:25 PMJenny
06/11/2021, 2:43 PMtask_b.bind(job=task_a.result[0], flow=flow)
won't work.Marie
06/11/2021, 3:24 PMJenny
06/11/2021, 3:49 PMMarvin
06/11/2021, 3:49 PMMarvin
06/11/2021, 3:50 PMMarie
06/11/2021, 4:56 PM