https://discord.gg/botpress logo
ai task too long to execute issues happening with ...
# 🤝help
c
I’ve found that AI Tasks sometimes take too long to execute, leaving the conversation hanging indefinitely. These lengthier executions happen frequently enough to be noticeable in production. However, it's often not necessarily the same node - so it's not an issue of one ai task in particular. The “On failure (2.0)” option has never worked reliably in my testing — it doesn’t seem to trigger when an AI Task stalls or times out. In fact, when I’ve used it, nothing happens. This makes it difficult to rely on AI Tasks in production, since the conversation gets stuck until the user manually sends another message to continue. Does anyone have tips, or a resolution surrounding this?
w
are you getting a specific error with the tasks?
could be due to model availability depending on which ones you're using
happens frequently with the newer gemini models for example
l
which LLM are you using?
c
gpt-4o November
Thanks, That makes sense! No specific error that I can recall, just that card took too long to execute. Unfortunately even if it is just the model, without a failsafe, it doesn't feel reliable.
w
yeah i agree, normally you set a fallback model in cases like these but seems like no errors happen so the fallback model isn't even triggered
could you try another model for a bit to see if this continues to happen, please?
2 Views