molcay commented on code in PR #74602:
URL: https://github.com/apache/airflow/pull/74602#discussion_r4274988861
##########
providers/google/src/airflow/providers/google/cloud/triggers/dataproc.py:
##########
@@ -651,13 +651,22 @@ async def run(self):
hook = self.get_async_hook()
while True:
- batch = await hook.get_batch(
- project_id=self.project_id, region=self.region,
batch_id=self.batch_id
- )
+ try:
Review Comment:
What about using `@retry` decorator from `tenacity` library which we are
using across all google provider for retry?
Also the decorator can be placed in the Hook code instead of Operator code.
--
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]