Majo Dencilin
09/11/2024, 7:40 AMprefect.exceptions.ScriptError: Script at '/var/folders/rm/bm2spvzj6qq477q54wdvmqd40000gp/T/tmp0vkt8jv1/github-repository-majo-github-repo/datalake/cids/c008/flows/migration/test.py' encountered an exception: TypeError('Result storage configuration must be persisted server-side. Please call `.save()` on your block before passing it in.')
Majo Dencilin
09/11/2024, 7:42 AMMajo Dencilin
09/11/2024, 10:09 AMVadym Shkarbul
09/11/2024, 10:13 AMMajo Dencilin
09/11/2024, 10:15 AMVadym Shkarbul
09/11/2024, 10:16 AMNate
09/11/2024, 2:16 PMNate
09/11/2024, 2:18 PMNate
09/11/2024, 2:35 PMresult_storage
, then this works
from prefect_aws import S3Bucket
from prefect import flow
S3Bucket(bucket_name="mybucket").save("test", overwrite=True)
@flow(result_storage=S3Bucket.load("test"))
def main():
return "test return"
if __name__ == "__main__":
main()
Nate
09/11/2024, 2:36 PMMaciej Bukczynski
09/11/2024, 2:44 PM@flow(result_storage="s3-bucket/s3-results-storage")
Nate
09/11/2024, 2:44 PMMajo Dencilin
09/12/2024, 4:59 AMresult_storage="s3-bucket/s3-results-storage"
But the one thing we should get the storage as a load instead of provide the value directly
so can we bring up with prefect team to fix this cleanly