Hello. quick question: is there a way to iterate t...
# ask-community
n
Hello. quick question: is there a way to iterate through all the tasks associated with a flow? Thanks in advance
1
j
You can iterate through the task runs associated with a flow run or deployment via the REST API. Here’s an example. See other examples of working with the REST API in the docs here.
n
thank you. I was looking for something like in prefect 1.0 where you could do
for task in list(flow.tasks):.
But I guess this only works in prefect 1.0
👍 1