https://prefect.io logo
#prefect-community
Title
# prefect-community
l

Lucien Fregosi

01/16/2023, 8:22 AM
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

Bianca Hoch

01/17/2023, 8:28 PM
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

Lucien Fregosi

01/18/2023, 9:09 AM
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

Bianca Hoch

01/23/2023, 2:36 PM
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

Lucien Fregosi

01/23/2023, 2:48 PM
🚀 1
gratitude thank you 1