change to 422 for stop query (#17292)

This commit is contained in:
AAfghahi
2021-10-29 19:34:41 -04:00
committed by GitHub
parent 5948a9fd02
commit 8a27c6760d
2 changed files with 2 additions and 1 deletions

View File

@@ -233,4 +233,4 @@ class InvalidPayloadSchemaError(SupersetErrorException):
class SupersetCancelQueryException(SupersetException):
pass
status = 422

View File

@@ -2347,6 +2347,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
)
@has_access_api
@handle_api_exception
@expose("/stop_query/", methods=["POST"])
@event_logger.log_this
@backoff.on_exception(