Constantino Schillebeeckx
10/24/2024, 5:45 PMprefect.runtime
context with result_storage
? i.e.
result_storage=S3Bucket(
bucket_name="foo_bucket",
bucket_folder="state/{flow_run.flow_name}"
)
2️⃣ is there a way of setting result_storage_key
more globally, e.g. through a ENVIRONMENT var?Bianca Hoch
10/25/2024, 9:45 PMflow_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 PMConstantino Schillebeeckx
10/28/2024, 3:25 PM