mistercrunch closed pull request #4928: [sql lab] handle query stop race condition URL: https://github.com/apache/incubator-superset/pull/4928
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/superset/sql_lab.py b/superset/sql_lab.py index b52e9a95f6..750da1f376 100644 --- a/superset/sql_lab.py +++ b/superset/sql_lab.py @@ -232,13 +232,7 @@ def handle_error(msg): conn.close() if query.status == utils.QueryStatus.STOPPED: - return json.dumps( - { - 'query_id': query.id, - 'status': query.status, - 'query': query.to_dict(), - }, - default=utils.json_iso_dttm_ser) + return handle_error('The query has been stopped') cdf = convert_results_to_df(cursor_description, data) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org