prefect
prefect copied to clipboard
result_storage need Callable
First check
- [X] I added a descriptive title to this issue.
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I searched the Prefect documentation for this issue.
- [X] I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
@flow can not use result_storage with function
Reproduction
@flow(flow_run_name="subflow",persist_result=True,result_storage=remoteFileSystem())
async def subflow():
def remoteFileSystem():
remote_file_system_block = RemoteFileSystem.load("minio-block")
return remote_file_system_block
Error
No response
Versions (prefect version
output)
prefect version
Version: 3.0.0rc9
API version: 0.8.4
Python version: 3.12.3
Git commit: b75631a7
Built: Mon, Jun 24, 2024 5:50 PM
OS/Arch: darwin/x86_64
Profile: default
Server type: server
Pydantic version: 2.7.3
Additional context
No response