https://prefect.io logo
a

Arteum Kanda

08/03/2023, 11:28 PM
Hello, I'm writing a
on_failure
state handler for my flow. I'm interested in finding all the errors that the flow encountered. I currently have a version that works locally by simply accessing the
state.result
dict and iterating over the entries. The problem is that when I deploy this to our self hosted Prefect server, that result dict is now always empty. I stumbled on this thread and saw this:
The
results
is not populated for runs with backend because it can be expensive to keep them all in memory.
Is there a way to remove this restriction and have the state results behave as they do locally? If not, how can I get the flow's results from my state handler? Note that this is Prefect v1.