Hi Constantino, I don't think you'll run into issues with using the runtime context in result storage. If you're looking to get the flow name from
flow_run
, I believe it will look like this:
runtime.flow_run.flow_name
I don't think there's an environment variable that sets the
result_storage_key
globally.
The closest thing I've found is:
prefect config set PREFECT_DEFAULT_RESULT_STORAGE_BLOCK
,
which sets the default storage location for your workflow, but you'd still need to set the
result_storage_key
at the task level.
Bianca Hoch
10/25/2024, 9:48 PM
IMO I think it's worth exploring adding an environment variable to achieve this. Mind creating an idea in the GitHub discussions? I can start one next week, unless you get to it before me.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.