shahar1 commented on code in PR #69118:
URL: https://github.com/apache/airflow/pull/69118#discussion_r4423676025
##########
providers/google/src/airflow/providers/google/cloud/sensors/bigquery.py:
##########
@@ -422,8 +432,28 @@ def poke(self, context: Context) -> bool:
)
hook = BigQueryHook(gcp_conn_id=self.gcp_conn_id,
impersonation_chain=self.impersonation_chain)
- try:
- table =
hook.get_client(project_id=self.project_id).get_table(table_ref)
- except NotFound as err:
- raise ValueError(f"Table {table_uri} not found") from err
- return table.streaming_buffer is None
+ client = hook.get_client(project_id=self.project_id)
Review Comment:
Addressed - since Airflow rebuilds the operator and clears XComs on
reschedule, the counter can’t persist; as you suggested, reschedule mode now
uses the trigger.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]