Thread
#prefect-community
    j

    Jason

    2 years ago
    For instance, when processing a CSV, can you yield per row?
    Jeremiah

    Jeremiah

    2 years ago
    Hi @Jason, at this time Prefect doesn’t support the generator model; each task must completely finish before downstream tasks run. However, you can use the
    Task.map()
    operation to map a downstream task over each row of a returned CSV.
    Chris White

    Chris White

    2 years ago
    Hi Jason - returning generators is not currently supported. Another reason for this is that generators do not work well in distributed modes
    j

    Jason

    2 years ago
    I see