Skip to content

Commit

Permalink
change to 422 for stop query (#17292)
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi authored Oct 29, 2021
1 parent 5948a9f commit 8a27c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ def __init__(self, error: ValidationError):


class SupersetCancelQueryException(SupersetException):
pass
status = 422
1 change: 1 addition & 0 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8a27c67

Please sign in to comment.