Hey team! :slightly_smiling_face: I am configuring...
# ask-community
b
Hey team! 🙂 I am configuring the PREFECT_RESULTS_PERSIST_BY_DEFAULT setting through the server Helm chart, I can see it reflecting in the server settings tab (v3.1.6) but the flows are not inheriting this setting, It is possible to configure it server-wide? Can these settings be inherited? Thanks! Also @Marvin
m
Hey there! Ah, Prefect settings can be a little like cats; they sometimes do their own thing. When it comes to configuring the
PREFECT_RESULTS_PERSIST_BY_DEFAULT
setting in Prefect 3.x, it seems that while you can set this globally to enable result persistence by default, the flows themselves might not automatically inherit this setting based on the server configuration alone. Here’s what I found: 1. Default Result Persistence: You can enable result persistence globally using the
PREFECT_RESULTS_PERSIST_BY_DEFAULT
environment variable. This is intended to enable result persistence across your tasks and flows automatically. More details on managing results can be found here. 2. Customization Per Deployment: It's possible that even if the global setting is in place, individual deployments might need explicit configuration to inherit global settings. This can be done by overriding job variables on a per-deployment basis, which is common if you're using Prefect's infrastructure customization. More on customizing deployments can be found here. If your flows aren't inheriting the setting automatically, you may need to check your deployment configurations. So, go ahead and give your flow deployments a gentle nudge to make sure they're aligned with your global settings. Remember, sometimes they like a bit of direct attention! If you face any challenges or need further clarification, just let me know!