-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bump client side chart timeouts to use the SUPERSET_WEBSERVER_TIMEOUT #28018
Conversation
dd4845e
to
4a2f84b
Compare
@@ -248,7 +248,7 @@ export async function getChartDataRequest({ | |||
|
|||
export function runAnnotationQuery({ | |||
annotation, | |||
timeout = 60, | |||
timeout = 300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option is for us to make this timeout configurable in config.py like we do with the server timeouts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on putting this in config such that we can see timeouts in one place and if someone wants to configure it for their instance they just have to update in config.py vs having to find all places and update it there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, would be nice to make this a config :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk, I'll make that change then. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be sensible to use one of the existing timeout configs rather than adding a new one?
N/M, you did!
4aa4ebd
to
7d262c8
Compare
const sliceKey = key || Object.keys(getState().charts)[0]; | ||
const {charts, common} = getState() | ||
const sliceKey = key || Object.keys(charts)[0]; | ||
const queryTimeout = timeout || common.conf.SUPERSET_WEBSERVER_TIMEOUT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config was already used elsewhere, so I decided to reuse it instead of creating a new one. Maybe in a follow up PR if we feel want the webserver and client timeouts to be different, we can update all of them. But for now, it's consistent with other parts of the js codebase.
7d262c8
to
60125d7
Compare
…MEOUT (apache#28018) (cherry picked from commit 137687b)
SUMMARY
We're seeing a lot of client side timeouts in annotation layers and for the chart/data endpoints. I'm not sure why we had the timeout set to only 1 minute, since the chart/data endpoints are traditionally some of the longest running queries.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION