Workflow block times out, ignoring settings timeout value

  1. My goal: Run an AI block (needs ~200s)
  2. Issue: Times out at 120s even though settings value is set to 600s
  3. Steps I've taken to troubleshoot: Tried to run the same query in an App, and it works.
  4. Additional info: (Cloud or Self-hosted, Screenshots)
    Cloud

Hello @Vlad_Balance, welcome back to the Community forum, good to see you again! :raised_hands:

According to the docs on Workflow resource blocks:

For asynchronous workflow runs, resource blocks can run up to 10 minutes. For synchronous workflows runs, resource blocks can run up to 2 minutes.

Just to confirm, are your workflows running synchronously? If so, the 2-minute limit (120s) is expected behavior. Let me know and we can look into it further if needed!

I see. How can I make sure the workflow is asynchronous? Would adding a response block early in the workflow solve this?

Hey @Vlad_Balance, Yes! In Retool, to make a workflow asynchronous:

  1. Add a Response block early in the workflow. This sends the response back to the caller right away.
  2. If the workflow is triggered from an app, set it to "Run until queued" so that it moves into the background instead of waiting for completion.

Keep me updated on what you see on your end!

Hey @Vlad_Balance, just checking in to see how you’re doing and if you still need help with your question above? :sunglasses:

Unfortunately I'm still running into the issue, even with the proposed change. With a 200 response block, the AI block now explicitly says that it will time out after 120s.

Am I doing something wrong? Is this a bug? Any other ideas?

Hello @Vlad_Balance, thanks for waiting! According to the docs Workflow limits | Retool Docs

AI Action blocks have a maximum timeout of 120 seconds. If your call takes longer than 120 seconds, you can instead call the AI provider directly via REST API, which doesn’t have this restriction.

Have you had a chance to try that approach?

Hey @Vlad_Balance, just wanted to follow up to see if you had a chance to review my suggestion above. How’s everything going with your setup so far? :pray: