flawed logic in the new visualization timeout
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if any
- I have reproduced the issue with at least the latest released version of superset
- I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
0.18.5
Expected results
adhere to webserver/worker’s timeouts e.g. as per the -t
flag to superset runserver
, or if superset is behind a reverse-proxy to that proxy’s timeout
Actual results
adhere to hardcoded value in javascript client - 45 seconds
Steps to reproduce
superset runserver -t 300
will still show that a 60s query times out, because the timeout is set to 45 seconds in constants.js
, despite 60 < 300
NOTE problem stems from https://github.com/airbnb/superset/pull/2763 which, for reasons that I cannot see nor guess, did not address the core problem: handle the 504 Gateway Time-out
status code of the ajax call and instead implemented a client-side timeout / ping @graceguo-supercat
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top Results From Across the Web
flawed logic in the new visualization timeout #3030 - GitHub
-t is a web server timeout, constants.js 's timeout is the client's timeout, and there's at least one or two more timetouts (celery/sqllab) ......
Read more >The Overflowing Timeout Error - A Debugging Journey in ...
This is achieved by defining timeouts. When the user runs a query, the execution is limited by some duration, and then the race...
Read more >Screen timeout/log out - Logic Machine Forum
Hi I've been searching the forum, but can't find a solution to my problem. It might be a out of the box feature...
Read more >PI System Administration: Troubleshooting - NET
The most common cause of new PI Points not receiving data is an incorrect configuration of the PI Point attributes according to the...
Read more >How to reduce flaky test failures - CircleCI
Find out whether your tests are flaky and learn how to fix them.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As mentioned by @graceguo-supercat, the faq says:
Please, can anyone explain me how to “rebuild js package”? because I already changed this file and I still see the message: “Query timeout - visualization query are set to time out at 45 seconds.”
If you are not behind proxy, or the proxy itself has a shorter timeout limit and you don’t want user see the 504 Gateway time-out, currently you have to change js file and rebuild js package.
This article might be helpful. I have limited control on proxy server.
Client-side timeout limit is just a quick fix. Ideally I am thinking we should provide a configuration webpage for admin user, so that he can easily configurate instead of hard-code it. If this feature has a good amount of request, I am happy to implement it. Also I am open to any suggestion to resolve this issue.