Hi all, for v1.0 I forgot how to set a result loca...
# ask-community
m
Hi all, for v1.0 I forgot how to set a result location dynamically - ie importing the flow and then setting the result template
1
a
I'm AFK so can't share a link but I'm sure there's a docs page in v1 called "Templating results" or so - LMK if you couldn't find it
m
ah I meant like
Copy code
# my_flow.py

with Flow("my_new_flow") as my_new_flow:
    ...

----
# infra_util.py

from prefect.engine.result import S3Result
from my_flow import my_new_flow

my_new_flow.result = S3Result(bucket="foo", location="bar")
my_new_flow.register(...)