Skip to content

Commit 464ab1b

Browse files
Wait insert_job result in normal mode (#29925)
1 parent 30b2e6c commit 464ab1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žairflow/providers/google/cloud/transfers/bigquery_to_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _submit_job(
197197
job_id=job_id,
198198
timeout=self.result_timeout,
199199
retry=self.result_retry,
200-
nowait=True,
200+
nowait=self.deferrable,
201201
)
202202

203203
def execute(self, context: Context):

β€Žtests/providers/google/cloud/transfers/test_bigquery_to_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_execute(self, mock_hook):
8787
location=None,
8888
timeout=None,
8989
retry=DEFAULT_RETRY,
90-
nowait=True,
90+
nowait=False,
9191
)
9292

9393
@mock.patch("airflow.providers.google.cloud.transfers.bigquery_to_gcs.BigQueryHook")

0 commit comments

Comments
 (0)