Hi prefect team For one of my flow i got this erro...
# prefect-community
l
Hi prefect team For one of my flow i got this error (when using prefect-dbt
trigger_dbt_cli_command()
)
Copy code
prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
The weird thing is • I didn’t restart the job it a basic scheduled jobs • It worked well before upgrading to 2.7.6 • I added the flag
PREFECT_RESULTS_PERSIST_BY_DEFAULT: true
but no effect
b
Hi Lucien! Thanks for raising this. Are you able to upgrade to the latest version of Prefect to see if the error persists? If it does, would you be able to share a minimal reproducible example?
Digging through our open issues, this one may be related to what you're experiencing here: https://github.com/PrefectHQ/prefect/issues/7506
The recommendation there is to set
prefect config set PREFECT_RESULTS_PERSIST_BY_DEFAULT=True
l
Hi @Bianca Hoch i tried with the 2.7.8 but same result For
PREFECT_RESULTS_PERSIST_BY_DEFAULT
i set the flag in the prefect server env variable but maybe it’s different to
prefect config set PREFECT_RESULTS_PERSIST_BY_DEFAULT=True
Hi @Bianca Hoch i have the same issue with your workaround sadly 😕
Hi @Bianca Hoch should I open an issue ?
b
Hello Lucien! Apologies for the delay on getting back to you. Yes please, if you're still running into this problem I'd recommend creating an issue. We'll be able to track it better that way. Thank you!
l
🚀 1
gratitude thank you 1