Skip to content

Commit

Permalink
add logging of retry state
Browse files Browse the repository at this point in the history
  • Loading branch information
lbjay committed Aug 1, 2024
1 parent 8263b89 commit f65d453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ repos:
types: [python]
- id: black
name: black
entry: black
entry: black -v
language: system
types: [python]
1 change: 1 addition & 0 deletions functions/zoom-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def upload_to_s3(self):
)
for attempt in retry_attempts:
with attempt:
logger.info({"retry state": attempt.retry_state})
file.stream_file_to_s3()
self.downloaded_files.append(file)
# RetryError means we've exhausted all retries
Expand Down

0 comments on commit f65d453

Please sign in to comment.