https://prefect.io logo
Title
b

Brian McFeeley

07/24/2019, 8:50 PM
is it possible to map a task over a list of results generated by a previous task, where the task has a signature like
@task
def do_something(x, y):
    # X is the same for each invocation
    # Y is the result we're mapping over
I tried something like
foo.map("two", "parameters")
, but when I print from inside these functions, only the second param contains what I expect
c

Chris White

07/24/2019, 9:11 PM
Hey @Brian McFeeley ! Definitely - we have an “unmapped” container for specifying that certain arguments should be held fixed and not mapped over. Check out the relevant docs here: https://docs.prefect.io/api/unreleased/utilities/tasks.html#unmapped
b

Brian McFeeley

07/24/2019, 9:12 PM
🚀
:marvin: 1
c

Chris White

08/05/2019, 9:46 PM
@Marvin archive “How to use task mapping but not map over one argument?”