Hello, all! I am seeing an unexpected issue with `...
# ask-metaflow
r
Hello, all! I am seeing an unexpected issue with
@catch
decorator and
mf.Flow(…).latest_successful_run
Basically, the flow fails at the
end
step, which is wrapped with a
@catch
decorator. This makes the flow continue and show as successful in the Metaflow UI. But… when trying to retrieve an artifact from
latest_successful_run
I keep getting an error. When printing the details for the historical runs (
run.successful
), I can see there isn’t anyone marked as successful = True I imagine this is not the expected behavior. So Raising for support. Should I create an issue?
By the way, I managed to get the expected behavior by moving the error-prone code into a separate step instead of
end
. Then it works fine! 1. model_explainability fails. Wrapped in @catch, so move on to the
end
step 2. Flow is marked as successful in the UI and when retrieving artifacts from latest_successful_run 🙌
s
let me reproduce and debug