Bil Tal
12/16/2024, 3:33 PMMarvin
12/17/2024, 11:53 AMPREFECT_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!