Can’t add messages to thread while a run is active
Hi,
I've built an app with AIOMATIC. In principle, there are several assistants that can perform certain tasks in the frontend, so potentially several requests to these assistants run in parallel.
Unfortunately, I often get the error message “Can't add messages to thread while a run is active”. Now I've read up a bit and it probably has to do with “async” processing of the processes. It would probably be a solution to put the requests in a kind of queue and have them processed one after the other.
The error doesn't always occur, it doesn't even occur with some wizards, and I can hardly replicate it properly. Presumably because I don't see this “thread” and also don't know whether something is blocking itself.
Now the question is, is there a solution for this? And does it make any sense at all to let users execute things with AIOMATIC in the frontend that can possibly run in parallel at times?
Thank You