File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4141# TODO(BLU-5171): Temporary hack to allow cancelling BigQuery jobs on KeyboardInterrupt (e.g. when user cancels cell execution)
4242# Can be removed once
4343# 1. https://github.com/googleapis/python-bigquery/pull/2331 is merged and released
44- # 2. Dependicies updated for the toolkit. We don't depend on google-cloud-bigquery directly, but it's transitive
44+ # 2. Dependencies updated for the toolkit. We don't depend on google-cloud-bigquery directly, but it's transitive
4545# dependency through sqlalchemy-bigquery
4646def _monkeypatch_bigquery_wait_or_cancel ():
4747 try :
@@ -73,9 +73,13 @@ def _wait_or_cancel(
7373 raise
7474
7575 _job_helpers ._wait_or_cancel = _wait_or_cancel
76- logger .debug ("Successfully monkeypatched google.cloud.bigquery._job_helpers._wait_or_cancel" )
76+ logger .debug (
77+ "Successfully monkeypatched google.cloud.bigquery._job_helpers._wait_or_cancel"
78+ )
7779 except ImportError :
78- logger .debug ("Could not monkeypatch BigQuery _wait_or_cancel: google.cloud.bigquery not available" )
80+ logger .debug (
81+ "Could not monkeypatch BigQuery _wait_or_cancel: google.cloud.bigquery not available"
82+ )
7983 except Exception as e :
8084 logger .warning ("Failed to monkeypatch BigQuery _wait_or_cancel: %s" , repr (e ))
8185
You can’t perform that action at this time.
0 commit comments