Thread
#prefect-community
    Jake Schmidt

    Jake Schmidt

    2 years ago
    Is it possible to map over a generator such that elements yielded would be mapped / computed immediately? Is this in the scope of ‘depth first execution’?
    CJ Wright

    CJ Wright

    2 years ago
    Hey Jake, this is a good question. The short answer is we don't support this because tasks must finish and return pickleable results to downstream tasks and generators can't be pickled. Let me know if that clears things up!