Can’t add messages to thread while a run is active

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 1 reply, 2 voices, and was last updated 7 hours, 9 minutes ago by Szabi – CodeRevolution.

Viewing 1 reply thread
  • Author
    Posts
    • #12021


      PWAist
      Participant

      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

    • #12025


      Szabi – CodeRevolution
      Keymaster
      Post count: 4815

      Hello,

      First of all, thank you for your purchase.

      Interesting issue, sounds like the run is still active on the thread when a new message is being added, which usually happens if multiple assistant calls are made at the same time or before the previous one finishes. However, this is interesting, as each chatbot should use a different thread ID.

      Can you send me, please, temporary admin login credentials to your WordPress install, so I can check this issue out? Send it, please, to my email address: kisded@yahoo.com

      Also, if you know how can I reproduce this issue, let me know, step by step.

      Regards,
      Szabi – CodeRevolution.

Viewing 1 reply thread

You must be logged in to reply to this topic.