Ben Muller
09/28/2021, 1:08 AMMap a function that adds tasks to a flow elementwise across one or more tasks. Arguments that should not be mapped over should be wrapped with prefect.unmapped.
but I feel like an example is needed
trying to do something like this:
users = ["ben", "kevin"]
CONSTANT_DATA = "something"
with Flow():
apply_map(notify, CONSTANT_DATA)
How do I hold this constant?Hugo Slepicka
09/28/2021, 1:13 AMfrom prefect import unmapped
users = ["ben", "kevin"]
CONSTANT_DATA = "something"
with Flow():
apply_map(notify, unmapped(CONSTANT_DATA))
Ben Muller
09/28/2021, 1:20 AMKevin Kho