Sean Brady
01/30/2024, 1:41 AMNate
01/30/2024, 1:25 PMSean Brady
01/31/2024, 3:45 AMNate
01/31/2024, 4:01 AMresult_storage
for your flow, like this maybe?
@flow(result_storage=S3.load("my-s3-block"))
to
@flow(result_storage=LocalFilesystem.load("my-local-fs-block"))
which would be a new block document, of a different typeSean Brady
01/31/2024, 4:22 AMSean Brady
01/31/2024, 4:22 AMSean Brady
01/31/2024, 4:22 AMNate
01/31/2024, 4:23 AMMarvin
01/31/2024, 4:23 AMsh
aws s3 cp <s3://your-bucket-name/path/to/object> /local/path
Remember to replace your-bucket-name
with the name of your S3 bucket, path/to/object
with the key (path) of the object in the bucket you wish to copy, and /local/path
with the path on your local disk where you want to place the copy.
Also, ensure you have the necessary permissions and your AWS CLI is configured with the appropriate credentials. Life's hard enough without access issues complicating things further.Nate
01/31/2024, 4:24 AMSean Brady
01/31/2024, 4:24 AMNate
01/31/2024, 4:26 AMSean Brady
01/31/2024, 4:27 AMresult = flow_run.state.result()
the_data_from_s3 = await result.get(client=self.prefect_client)
Sean Brady
01/31/2024, 4:28 AMSean Brady
01/31/2024, 4:32 AMstorage_block_id
which points to a block_document
, which as a type of s3Sean Brady
01/31/2024, 4:32 AMNate
01/31/2024, 4:35 AMSean Brady
01/31/2024, 4:39 AMclass S3RedisStorage(S3):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
async def read_path(self, path: str) -> bytes:
# get stuff from redis
etc.