Hi, in a flow with subflows, if a subflow fails at...
# ask-community
n
Hi, in a flow with subflows, if a subflow fails at a task and I retry the parent flow. the parent flow creates a new subflow run and starts all the tasks in it(completed or otherwise). I was expecting it to run the same subflow and continue with the failed task. Am I not understanding the logic or am I missing a settings somewhere?
d
the solution is to persist the subflow results onto a remote cache
n
you mean setting
result_storage
for a flow right? have set that up for all the flows(including subflows)
d
Also the cache
Not just storage
n
I see, could you send me a link to an example that uses this
Copy code
persist_result: Optional[bool] = None,
cache_result_in_memory: bool = True,
n
oh do you mean
cache_result_in_memory
? does this work when a flow fails n I retry it from the dashboard?
d
if its in memory it wont be shared between 2 flow runs
I am not sure anymore tbh. Atleast tasks can be cached - I thought subflows could be cached as well. Ill check tomorrow.