pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

async pipeline

Open gesaleh opened this issue 9 months ago • 2 comments
trafficstars

i have the following configuration openwebui - pipeline - API call (asyncio) custom_microservice (workflow, RAG,....)

when i use def pipe as sync all work good I updated the microservice to perform response streaming with event of my workflow chain when i move the pipe to async i have no control anymore on the ui I see the POST request coming to pipeline docker but i never receive it on the API microservice how to control the status and make the pipeline receive the stream

there is no example of such pipeline ? is it possible to have such solution ?

gesaleh avatar Feb 04 '25 08:02 gesaleh

@gesaleh Have you found how to run Async Pipelines. I cannot find any example and just doing ainvoke does not work at all.

tonicebrian avatar Mar 04 '25 09:03 tonicebrian

As the pipe is currently handled, it only supports synchronous functions code where the pipe is loaded We would also like to use ainvoke in a langchain / langgraph pipeline. I can take a look at it and do a PR.

dominikpeter avatar Mar 15 '25 11:03 dominikpeter