https://prefect.io logo
Title
n

Nick DeCraene

09/27/2022, 6:55 PM
hi there, are there any examples of using FilterTasks in prefect 2.0? haven't found anything in the docs regarding these, so wondering if the path changed or if they were removed entirely
1
b

Bianca Hoch

09/27/2022, 7:00 PM
Hi Nick, in 2.0 this is now handled with pure python. Here's an article that may be helpful to you.
:upvote: 1
n

Nick DeCraene

09/27/2022, 7:01 PM
ahhhh, yeah that makes a lot of sense, thanks!
1
to follow up here, given that we can just use the python builtins in flow methods, why is the
.map()
method still around for tasks, instead of just using the builtin?
just to that we can still group parent/child tasks together for retries?
z

Zanie

09/27/2022, 7:34 PM
We’re planning on collapsing tasks submitted with
map
in the UI view, it’s also more performant as we submit all of the tasks concurrently which is nontrivial to do in a synchronous flow.
:gratitude-thank-you: 1
🚀 1