https://prefect.io logo
Title
t

Tim-Oliver

02/07/2023, 12:42 PM
Hi, I am trying to run a flow from within a flow with result persistence on and get the following error:
line 139, in from_flow
    result_storage=flow.result_storage or ctx.result_factory.storage_block,
AttributeError: 'Flow' object has no attribute 'result_storage'
Any help would be appreciated.
c

Christopher Boyd

02/07/2023, 12:53 PM
What version are you using , and how is flow defined , as well as result storage? Flow.result_storage in a sub-flow should be defaulting to the parent flow result storage , whatever that is
t

Tim-Oliver

02/07/2023, 1:02 PM
version 2.7.12 and I set result_storage to a local-file-system block. for both parent- and sub-flow. Should I not set a flow-storage for the subflow?
c

Christopher Boyd

02/07/2023, 1:03 PM
It inherits the parent by default
So I don’t see that there is a requirement to do it
t

Tim-Oliver

02/07/2023, 4:04 PM
Thanks for the answer. It works now as expected. But I am not sure if I stumbled over something weird or not. I will have to investigate further.