-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
feat: add new SQLLAB_FORCE_RUN_ASYNC feature flag #29231
Conversation
@mistercrunch could you provide more details with regards to the motivation for this change? It likely introduces a degraded UX as admins likely could be misinformed that a given database is running in sync mode whereas in actuality (when the feature flag is enabled) the database is using async. |
The requirement is we want the optionality to enforce this for some of our customers at Preset, but I get your point and I agree that I should probably disable the UI element in the database connection form. |
When setting up a celery backend to run asynchronous workloads, the administrator can set any given database connection to use (or not use) that backend. This PR introduced a new feature flag SQLLAB_FORCE_RUN_ASYNC (False by default) that disregards the database configuration, and forces SQL Lab to use the async backend. NOTE: superset/sqllab/sqllab_execution_context.py didn't have unit tests so I wrote started a new module to run basic tests around it.
29ee273
to
4cdf122
Compare
@john-bodley I added frontend cues -> |
63f81ed
to
9538b75
Compare
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
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.
Sorry my suggestion wasn't properly indented. However, this looks good!
No worries, a quick --fix took care of it |
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
When setting up a celery backend to run asynchronous workloads, the administrator can set any given database connection to use (or not use) that backend. This PR introduced a new feature flag SQLLAB_FORCE_RUN_ASYNC (False by default) that disregards the database configuration, and forces SQL Lab to use the async backend.
NOTE: superset/sqllab/sqllab_execution_context.py didn't have unit tests so I wrote started a new module to run basic tests around it.