Hey all have urgent question, what is the best way...
# ask-community
m
Hey all have urgent question, what is the best way to specify result location for a deployment?
n
you do actually specify this on the flow, so you could use
stored_flow = my_flow.with_options(result_storage=Block.load("s3/mybucketblockname")
m
so I am trying to load and its not working for some reason:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<http://ephemeral-prefect/api/block_types/slug/s3/block_documents/name/my-block-name?include_secrets=true>'
Response: {'detail': 'Block document not found'}
n
do you see the block you need in
prefect block ls
if you run that against the same server?
m
nope.... im loading the flow inside of a ray serve deployment on cluster startup. I guess its not setting the prefect config correctly
n
gotcha, you'll need to have PREFECT_API_KEY and PREFECT_API_URL set on the machine that's trying to load that block from the server that has it saved