I've just upgraded to Prefect 3 and I've bumped into an issue I can't seem to fix.
I have a sync flow, which runs an async task using submit(). This task sometimes explicitly returns a Failed state, but it seems when it does so, Prefect believes it's been returned a Completed state. Does anyone have any idea of what's happening here?
Edit: Nevermind, I created a Github issue, will handle discussions there!
2nd edit: I was returning the wrong type of State, see
https://github.com/PrefectHQ/prefect/issues/15300 for the solution.