Timeout in queries in modules is not applied when modules used in app

  • Goal: hi, I made a module that uses a query, and put a timeout of 200s on the query, its a long one.

  • Steps: I set the query timeout to 200s in the module screen

  • Details: When Im in the module edit screen it does work with the extended timeout, but not in the app i put the module in

would appriciate if the team could look into it!

Hey Tomer_Ashtamker! How are you doing? Hope all is well!
Keep in mind that when running a workflow within the module edit screen, it'll take into considerations the changes you have still not deployed.
Make sure to deploy your latest changes to the workflow so that the application runs it successfully when it's triggered! You'll find this section at the top-right of the page.
deployed
deploy

hi whats up, its actually deployed. and just changes about the timeout doesnt work, if i update other things it does, i think the problem is timeout specific

I think then maybe it's not an issue regarding the timeout per-se. Maybe the query is being executed (meaning it does not reach timeout) but it throws an error. Could you please share more details on the console logs? Thanks!

of course, here are the logs

image

even in the state of the query from the app i can see the timeout is on 200 sec, i dont understand why i get the network timeout after 10 sec

here is also the rror in the state of the query

thanks!

The query timeout does apply in the module screen, just not when the module is in an app

@Tomer_Ashtamker did you find a resolution? I have similar issues.

Ok, found something. It worked when I created the query as a resource query and didnt use the one from the query library. But there seems to be no way to change the timeout in the query library.

@retool-staff Input would be welcome here.

Hi there,

We have a bug on file to fix this behavior, but this is the current behavior:

  1. When the query library query is in an app and pinned to a specific version, it will use the timeout setting from the query settings in the app.

2). When the query library query is in an app and pinned to "Latest version," it will use the timeout setting from the query library

Are you both using the query library? The query library bug is the same whether you're importing directly into an app or from a module

Yes, I used the query library in the module.

But when editing the module, not within an app, the timeout works for me.

It is only when I use the module within an app

Hmm I haven't been able to reproduce that behavior yet :thinking: @Tomer_Ashtamker are you seeing this on Retool Cloud or self hosted?