ganczarek opened a new issue, #24890: URL: https://github.com/apache/superset/issues/24890
When an async query (`GLOBAL_ASYNC_QUERIES=True`) is run in Chart view, clicking "Stop" button doesn't have any effect. Clicking Stop button, closing tab, refreshing page or going to other page leaves the query running in a database. #### How to reproduce the bug 1. Go to 'Chart' view 2. Click on 'Update Chart' to execute query 3. Click on 'Stop' to stop query ### Expected results Running query is cancelled in a database. ### Actual results Nothing happens. ### Environment - browser type and version: - superset version: `2.1.0` - python version: `3.8.13` - node.js version: `16.9.1` - any feature flags active: `GLOBAL_ASYNC_QUERIES=True` ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [ ] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Clicking "Stop" button aborts fetch request, but that doesn't cancel running query in a database. With `GLOBAL_ASYNC_QUERIES` enabled that request is very fast, so in most cases there's no even request to abort. To stop a running async query we need to terminate Celery task and cancel query in a database. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
