rusackas commented on code in PR #44552:
URL: https://github.com/apache/superset/pull/44552#discussion_r4288957188


##########
superset/common/query_context_processor.py:
##########
@@ -305,7 +306,15 @@ def get_df_payload_result(
                         )
                     )
 
-                query_result = self.get_query_result(query_obj)
+                # Make the warehouse query cancellable by its owner for the 
span
+                # of its execution, so Explore's Stop button kills the query
+                # rather than just abandoning the response. No-op for engines
+                # without cancel support, and for requests carrying no 
client_id.
+                with cancellable_chart_query(

Review Comment:
   Took another look: `execute_chart_query` wraps `get_df_payload_result` in 
`_capture_query_cancellation`, which registers its own on_abort cancel 
independent of `client_id`. Async's covered by that path already, so no 
serialization change needed here. Resolving.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to