Manuel Mourato
09/14/2020, 2:58 PMCould not infer an active Flow context.1) I have task1, which outputs a result that is a list , say : ["a","z"]
2) Now, I have a task2, that depends on the result of task1, but should only receive the first element of the result list as an input
Example:@task
def replace_str(x):
    return x.replace("a","A")
@task
def create_str_list():
    return ["a","b","c"]flow= Flow("test")
flow.set_dependencies(create_str_list)
--> THIS IS WHAT I WANT TO DO
flow.set_dependencies(replace_str, keyword_tasks={"x": create_str_list[0]})Chris White
create_str_list[0]create_str_listwith flow:
    flow.set_dependencies(replace_str, keyword_tasks={"x": create_str_list[0]})