Skip to content

Different behaviour in prefect future and result between prefect 2 and 3 #17111

Closed Answered by OliverKleinBST
OliverKleinBST asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @desertaxle ,
It turned out to be a bug on my end, cause by a wrong import of Failed and Completed I had in my code base - and which for some reason worked still with prefect 2 but breaks the future handling in prefect 3.

For unknown reason I had

from prefect.server.schemas.states import Failed

instead of

from prefect.states import Failed

With the corrected import the .result() problem is gone!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OliverKleinBST
Comment options

Answer selected by zzstoatzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants