Hi, how can I check the status of a flow that migh...
# ask-metaflow
n
Hi, how can I check the status of a flow that might be currently running? I was trying to use the client API to do this. My assumption was that if
Run.finished
was
True
and
Run.successful
was
False
then the flow had failed. However, it seems like finished and successful are always the same value. The ui shows the status of the runs so I assume it is possible to get from the metadata api.
f
Is this from inside the flow or outside the flow?
Run should work also. What do you mean by finished and successful are always the same?
n
This is from outside the flow. Every time I have checked Run.finished and Run.successful have the same value. If the flow is running or if it has failed they are both false. If and only if the flow was completed successfully are both true. I need a way to distinguish between running and failed.
f
That's weird. We do use some logic like that where we check
.successful
n
We have callbacks in our flows for error reporting but sometimes there are issues in AWS batch that prevent the callback from completing successfully. Trying to get a more robust solution.