From e5e301c71f8f7612e6e6a71c7fb9c8f94a2a14fc Mon Sep 17 00:00:00 2001 From: Arash Date: Fri, 29 Oct 2021 16:54:34 -0400 Subject: [PATCH] change to 422 for stop query --- superset/exceptions.py | 2 +- superset/views/core.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/exceptions.py b/superset/exceptions.py index b5ae7478dc85a..76da484dc3f95 100644 --- a/superset/exceptions.py +++ b/superset/exceptions.py @@ -233,4 +233,4 @@ def __init__(self, error: ValidationError): class SupersetCancelQueryException(SupersetException): - pass + status = 422 diff --git a/superset/views/core.py b/superset/views/core.py index e262ab7425364..767af4e98b5ef 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2347,6 +2347,7 @@ def results_exec(key: str) -> FlaskResponse: ) @has_access_api + @handle_api_exception @expose("/stop_query/", methods=["POST"]) @event_logger.log_this @backoff.on_exception(