Not quite. So this works in Prefect Core because the results are held when running locally. But the results are not held when you run in Cloud because they can be very big and it’s not performant to hold them.
Because of that, you need to query for the specific task states using the GraphQL API. I actually think the easier thing to do is to attach a state handler on the terminal tasks themselves to notify you if they fail.
You can also have a reporting task with a
trigger
always_run
that takes in your terminal tasks and checks if they suceeded or not