Hello, does anyone know if there is a simple way o...
# ask-metaflow
h
Hello, does anyone know if there is a simple way of catching when a flow is stopped/terminated when using Argo?
1
a
Is the intention to get a notification when that happens? you can use notifications to get informed of when a workflow is stopped
you can also inspect the workflow k8s object using the kubernetes cli to ascertain the state of the flow
h
That’s useful for general knowledge but no that’s not the use case. I have a long running flow that’s processing items in a database. I have it setup to return the last completed id if it errors but I found myself needing to manually stop it which didn’t return the last completed id.
The info is findable, but it would be nice if I could log it directly when it’s stopped.