aaron-y-chen commented on code in PR #72317:
URL: https://github.com/apache/airflow/pull/72317#discussion_r4068468761
##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/batch.py:
##########
@@ -184,7 +184,7 @@ def __init__(
@cached_property
def hook(self) -> AzureBatchHook:
"""Create and return an AzureBatchHook (cached)."""
- return AzureBatchHook(self.azure_batch_conn_id)
+ return AzureBatchHook(self.azure_batch_conn_id,
batch_max_retries=self.batch_max_retries)
Review Comment:
In deferrable mode, `AzureBatchTrigger.run()` creates a separate
`AzureBatchHook` without passing `batch_max_retries`. I think we should also
add on it.
https://github.com/apache/airflow/blob/e7e4e34008cdbbe4ca6a82a1a9ee09cf0702344e/providers/microsoft/azure/src/airflow/providers/microsoft/azure/triggers/batch.py#L122-L124
--
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]