https://prefect.io logo
j

Jeff Yun

09/30/2019, 6:27 PM
How do I map over the product of two parameters? I consulted the docs and issues (notably https://github.com/PrefectHQ/prefect/issues/1311 and https://github.com/PrefectHQ/prefect/issues/674), but still couldn't figure it out. Some attempts: 1) Passing a task into a "compose" task as a parameter --> result = compose.map(ids, unmapped(generate_task), unmapped(dates)) --> got
TypeError: generate_task() missing 2 required positional arguments:
2) Calling a known task from a "compose" task --> got
ValueError: Could not infer an active Flow context.
3) Typecasting parameter to list --> Parameter is not iterable
4 Views