Skip to content

Commit

Permalink
Use non-deprecated method for on_kill in BigQueryHook (#27547)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstandish committed Nov 7, 2022
1 parent 8c15b0a commit 199359b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ def on_kill(self) -> None:
super().on_kill()
if self.hook is not None:
self.log.info("Cancelling running query")
self.hook.cancel_query()
self.hook.cancel_job(self.hook.running_job_id)


class BigQueryCreateEmptyTableOperator(BaseOperator):
Expand Down

0 comments on commit 199359b

Please sign in to comment.