eladkal commented on code in PR #33229:
URL: https://github.com/apache/airflow/pull/33229#discussion_r1322629275
##########
airflow/providers/google/cloud/hooks/gcs.py:
##########
@@ -330,11 +330,16 @@ def download(
# TODO: future improvement check file size before downloading,
# to check for local space availability
- num_file_attempts = 0
+ if num_max_attempts is None:
+ num_max_attempts = 3
+
+ for attempt in range(num_max_attempts):
+ if attempt:
+ # Wait with exponential backoff scheme before retrying.
+ timeout_seconds = 2 ** attempt
Review Comment:
```suggestion
timeout_seconds = 2**attempt
```
To fix linter
--
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]