josh-fell commented on code in PR #28889:
URL: https://github.com/apache/airflow/pull/28889#discussion_r1068607878


##########
airflow/providers/google/cloud/operators/dataproc.py:
##########
@@ -1779,6 +1779,10 @@ def execute(self, context: Context):
         self.log.info("Template instantiated. Workflow Id : %s", 
self.workflow_id)
         operation.result()
         self.log.info("Workflow %s completed successfully", self.workflow_id)
+    
+    def on_kill(self):
+        if self.operation:

Review Comment:
   You'll need to make `operation` an instance attr in `execute()` for this 
method to work too.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to