https://prefect.io logo
j

John Ramirez

02/06/2020, 8:01 PM
Hey - is there a way in the task
map
to run a cross product. For example, task_one with inputs [a, b] and [c, d] will run {a,c] [a,d] [b, c] [b,d]
c

Chris White

02/06/2020, 8:42 PM
Hi John - there is an open feature request to make this a first-class operation here: https://github.com/PrefectHQ/prefect/issues/1986 In the meantime, you would need to create a task which accepts your two list-tasks as inputs, creates the cross product and returns it, then performs a mapping