https://prefect.io logo
Title
c

Christian Nuss

05/09/2022, 6:52 PM
hey there! using S3 Storage Class, how do I modify the path of the results?
k

Kevin Kho

05/09/2022, 6:53 PM
You can check this page or you can just specify the
location
keyword argument if you dont need dynamicism
c

Christian Nuss

05/09/2022, 6:55 PM
can it be set globally-ish when the flow is registered instead of at the task level?
k

Kevin Kho

05/09/2022, 6:58 PM
I think so:
with Flow(.., result=S3Result(bucket="..", location="insert_template_here"):
   ...
and that result will be the default one for each task. You can also use the
task_run_name
or
task_name
since they are available in the context
c

Christian Nuss

05/09/2022, 8:16 PM
sweet i'll give that a shot,thanks!