-
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
Superset not stopping when I press stop button. #21865
Comments
HI, what database are you running the query on? Some databases haven't been enabled yet with stop query functionality. |
@eschutho Sorry, I should have included that in my OP. I'm using MySQL. |
I have the same problem with |
@M3gar00 Yeah, MySQL should work for this. We'll have to test more on both MySQL and Trino. |
currently tested this locally on the same build, and I'm able to properly stop the query Screen.Recording.2022-12-09.at.2.23.07.PM.mov |
Hello @eschutho, you mentioned above that some databases haven't been enabled yet with stop query functionality. Has it been enabled for Google BigQuery yet? I am using Google BigQuery and the stop query functionality isn't working for me, but I want to make sure it's not another issue causing this. |
Right now, I see the cancel functionality in mysql, postgres, redshift, snowflake, impala and trino. So, no, I don't see the method built out for BigQuery yet @lgingerich. |
When I use SQL Lab with Impala as the data source, I often encounter the following error message when I click the stop button during query execution:Failed at stopping query. WUJFsUIaJ |
The |
Impala stop query was implemented recently in #22635. You can test this out on the 2.1 release. |
I'm having the same problem with |
For me too the stop from Superset 2.0.1 UI is not propagating to Trino 400. I am getting 200 response on the stop query endpoint in the logs though. |
ccing @villebro - he mentioned that he can test out Trino. |
Hi, I'm looking into this, and I can indeed confirm that the queries appear to execute regardless of the stop button having been pushed. This may somehow be related to the migration of the query stopper from the legacy view to the v1 API. |
Hi @eschutho, we ran into the same issue in Production that "Stop" button doesn't response in v2.1.0 Superset. We are using the "Clickhouse" as the database. Could you help to check whether this is enabled or not? If not, is there any ETA? Appreciate your help in advance. |
Pinging a few other folks from the DB Rolodex for good measure: @cccs-tom @john-bodley @sujiplr They all use Trino according to the DB Rolodex, which anyone here can get in on, btw ;) I haven't looked into the issue at all, but Impala had a similar problem not so long ago, in case this sheds any insight. |
Following up here - I looked into this but I wasn't able to figure out what's going wrong. The problem is the related code paths are very convoluted right now, and there's a lot of room for improvement. So I can definitely work on this and clean it up some, but I'm not sure when I'll be able to do so (I don't want to set unrealistic expectations). So if someone wants to pick this up before then and needs help, let me know so I can walk you through what I'd personally do to fix this. |
Hi @Lucian63, stop query functionality for clickhouse has not been implemented yet. We're open to PRs though! |
We use MySql and Superset 3.0.2, the stop button only works if they queries are executed in synchronous mode |
Closing this since it's a confluence of databases being reported (some have been fixed, some maybe not), and it's on a no-longer-supported version of Superset, and it's been stale for upward of 6 months. If anyone is still facing these issues, please post a new Issue with a single database and updated context. Thanks for understanding. |
I'm attempting to run a simple test query:
SELECT count(*) from table_x;
I'm currently sitting at
22:35:59.00
and counting.I've reset the server multiple times (I'm working on a different problem that has required the server to be re-deployed).
How to reproduce the bug
No clue, this query has worked almost instantaneously in the past.
Expected results
The query to A) run quickly and B) stop when I hit the stop button.
Actual results
The query is still going almost a full day later, and I get an error of
Failed at stopping query. z-Bk9XLonv
when I click on Stop.Screenshots
Environment
2.0.0
FEATURE_FLAGS = {
"ALERT_REPORTS": True,
"DASHBOARD_RBAC": True,
}
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I started another query in a tab (Similar to the first), and I recorded the logs from when the query started:
The text was updated successfully, but these errors were encountered: