Streaming flow run result? #18852
Unanswered
TheoMathurin
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a workflow with persisted results which may return a large ZIP, and an API that allows clients to retrieve the results from completed flow runs.
Currently I use the python client to get the flow run object and then the result through
flow_run.state.result(). However, this entails deserialising the whole payload into memory which may yield excessive memory usage. I'd like a way to have a streaming handle (e.g. a file-like object) to in turn allow my API to return a stream (e.g. FastAPI'sStreamingResponse).I have not seen a built‑in streaming result API in the
Stateobject, but is there a recommended workaround that avoids full deserialisation? Or maybe it could be a valuable addition?Beta Was this translation helpful? Give feedback.
All reactions