Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti committed Jul 9, 2021
1 parent ec39477 commit 4706b43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,13 @@ def execute_sql_statements( # pylint: disable=too-many-arguments, too-many-loca


def cancel_query(query: Query, user_name: Optional[str] = None) -> None:
"""Cancal a running query."""
"""
Cancel a running query.
:param query: Query to cancel
:param user_name: Default username
:return: None
"""
cancel_payload = query.extra.get(cancel_payload_key, None)
if cancel_payload is None:
return
Expand Down

0 comments on commit 4706b43

Please sign in to comment.