@@ -177,6 +177,8 @@ class BigQueryCheckOperator(_BigQueryDbHookMixin, SQLCheckOperator):
177
177
account from the list granting this role to the originating account (templated).
178
178
:param labels: a dictionary containing labels for the table, passed to BigQuery
179
179
:param deferrable: Run operator in the deferrable mode
180
+ :param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
181
+ Defaults to 4 seconds.
180
182
"""
181
183
182
184
template_fields : Sequence [str ] = (
@@ -198,6 +200,7 @@ def __init__(
198
200
impersonation_chain : str | Sequence [str ] | None = None ,
199
201
labels : dict | None = None ,
200
202
deferrable : bool = False ,
203
+ poll_interval : float = 4.0 ,
201
204
** kwargs ,
202
205
) -> None :
203
206
super ().__init__ (sql = sql , ** kwargs )
@@ -208,6 +211,7 @@ def __init__(
208
211
self .impersonation_chain = impersonation_chain
209
212
self .labels = labels
210
213
self .deferrable = deferrable
214
+ self .poll_interval = poll_interval
211
215
212
216
def _submit_job (
213
217
self ,
@@ -240,6 +244,7 @@ def execute(self, context: Context):
240
244
conn_id = self .gcp_conn_id ,
241
245
job_id = job .job_id ,
242
246
project_id = hook .project_id ,
247
+ poll_interval = self .poll_interval ,
243
248
),
244
249
method_name = "execute_complete" ,
245
250
)
@@ -288,6 +293,8 @@ class BigQueryValueCheckOperator(_BigQueryDbHookMixin, SQLValueCheckOperator):
288
293
account from the list granting this role to the originating account (templated).
289
294
:param labels: a dictionary containing labels for the table, passed to BigQuery
290
295
:param deferrable: Run operator in the deferrable mode
296
+ :param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
297
+ Defaults to 4 seconds.
291
298
"""
292
299
293
300
template_fields : Sequence [str ] = (
@@ -312,6 +319,7 @@ def __init__(
312
319
impersonation_chain : str | Sequence [str ] | None = None ,
313
320
labels : dict | None = None ,
314
321
deferrable : bool = False ,
322
+ poll_interval : float = 4.0 ,
315
323
** kwargs ,
316
324
) -> None :
317
325
super ().__init__ (sql = sql , pass_value = pass_value , tolerance = tolerance , ** kwargs )
@@ -321,6 +329,7 @@ def __init__(
321
329
self .impersonation_chain = impersonation_chain
322
330
self .labels = labels
323
331
self .deferrable = deferrable
332
+ self .poll_interval = poll_interval
324
333
325
334
def _submit_job (
326
335
self ,
@@ -360,6 +369,7 @@ def execute(self, context: Context) -> None: # type: ignore[override]
360
369
sql = self .sql ,
361
370
pass_value = self .pass_value ,
362
371
tolerance = self .tol ,
372
+ poll_interval = self .poll_interval ,
363
373
),
364
374
method_name = "execute_complete" ,
365
375
)
@@ -414,6 +424,8 @@ class BigQueryIntervalCheckOperator(_BigQueryDbHookMixin, SQLIntervalCheckOperat
414
424
account from the list granting this role to the originating account (templated).
415
425
:param labels: a dictionary containing labels for the table, passed to BigQuery
416
426
:param deferrable: Run operator in the deferrable mode
427
+ :param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
428
+ Defaults to 4 seconds.
417
429
"""
418
430
419
431
template_fields : Sequence [str ] = (
@@ -439,6 +451,7 @@ def __init__(
439
451
impersonation_chain : str | Sequence [str ] | None = None ,
440
452
labels : dict | None = None ,
441
453
deferrable : bool = False ,
454
+ poll_interval : float = 4.0 ,
442
455
** kwargs ,
443
456
) -> None :
444
457
super ().__init__ (
@@ -455,6 +468,7 @@ def __init__(
455
468
self .impersonation_chain = impersonation_chain
456
469
self .labels = labels
457
470
self .deferrable = deferrable
471
+ self .poll_interval = poll_interval
458
472
459
473
def _submit_job (
460
474
self ,
@@ -498,6 +512,7 @@ def execute(self, context: Context):
498
512
days_back = self .days_back ,
499
513
ratio_formula = self .ratio_formula ,
500
514
ignore_zero = self .ignore_zero ,
515
+ poll_interval = self .poll_interval ,
501
516
),
502
517
method_name = "execute_complete" ,
503
518
)
@@ -794,6 +809,8 @@ class BigQueryGetDataOperator(GoogleCloudBaseOperator):
794
809
Service Account Token Creator IAM role to the directly preceding identity, with first
795
810
account from the list granting this role to the originating account (templated).
796
811
:param deferrable: Run operator in the deferrable mode
812
+ :param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
813
+ Defaults to 4 seconds.
797
814
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
798
815
if any. For this to work, the service account making the request must have
799
816
domain-wide delegation enabled. Deprecated.
@@ -822,6 +839,7 @@ def __init__(
822
839
impersonation_chain : str | Sequence [str ] | None = None ,
823
840
deferrable : bool = False ,
824
841
delegate_to : str | None = None ,
842
+ poll_interval : float = 4.0 ,
825
843
** kwargs ,
826
844
) -> None :
827
845
super ().__init__ (** kwargs )
@@ -840,6 +858,7 @@ def __init__(
840
858
self .impersonation_chain = impersonation_chain
841
859
self .project_id = project_id
842
860
self .deferrable = deferrable
861
+ self .poll_interval = poll_interval
843
862
844
863
def _submit_job (
845
864
self ,
@@ -915,6 +934,7 @@ def execute(self, context: Context):
915
934
dataset_id = self .dataset_id ,
916
935
table_id = self .table_id ,
917
936
project_id = hook .project_id ,
937
+ poll_interval = self .poll_interval ,
918
938
),
919
939
method_name = "execute_complete" ,
920
940
)
@@ -2630,7 +2650,8 @@ class BigQueryInsertJobOperator(GoogleCloudBaseOperator):
2630
2650
:param result_retry: How to retry the `result` call that retrieves rows
2631
2651
:param result_timeout: The number of seconds to wait for `result` method before using `result_retry`
2632
2652
:param deferrable: Run operator in the deferrable mode
2633
- :param poll_interval: polling period in seconds to check for the status of job. Defaults to 4 seconds.
2653
+ :param poll_interval: (Deferrable mode only) polling period in seconds to check for the status of job.
2654
+ Defaults to 4 seconds.
2634
2655
"""
2635
2656
2636
2657
template_fields : Sequence [str ] = (
0 commit comments