Hi!
Fetching sub-flow results without storage-serialization:
I'm trying to run sub-flow from my parent-flow, over separate machines (through
run_deployment
) - and i want to get the (json-serialized) results directly returned in python rather than through serialized-dumps on file-system -since the external-machines are dead when i finish waiting for all sub-flows, local-files persistence crashes. i was hoping not to define a shared efs or spam s3 with temp-calculations - i assumed it's possible (something lie Airflow's xcomm, or just return the value which was already held by the subflow-process)
After many (!) talks with Marvin, i tried to get the outputs through
flow_run.state.result(fetch=True)
and also made sure to activate the in-memory storage rather than file-system (which is not even defined as Block, but still) through
@flow(persist_result=False)
decorators.
However i'm still failing over marvin's specific example snippet (this time over:
prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API.
)
Any idea if this snippet should work at all? am i missing something basic (some server-configuration)? must i define a shared-efs?
i'll put on marvin's (slightly-modified) snippet in thread
Thanks!