Skip to content

Conversation

@joaopamaral
Copy link
Contributor

Description of change

The round call in calculate_seconds method was making the retry attempt trigger before resetting the API token for less than a second (when the API rate limit is achieved), which causes a new exception that causes the extract to fail. The ceil fix this issue since it makes the request always being made after the reset.

The minimum remaining rate limit parameter was included to add the possibility of setting a custom limit remaining rate limit instead of 0. With that config, it's possible to avoid reaching the extreme limit (0 remaining rate limit) and it's important if there are others tokens used by the same user.

Manual QA steps

Risks

Rollback steps

  • revert this branch

@singer-bot
Copy link

Hi @joaopamaral, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@singer-bot
Copy link

You did it @joaopamaral!

Thank you for signing the Singer Contribution License Agreement.

joaopamaral and others added 30 commits August 27, 2024 19:10
…teLimit-Remaining-in-the-header

Remove the exception if no X-RateLimit-Remaining is found in the header
…-if-no-RateLimit-Remaining-in-the-header

Revert "Remove the exception if no X-RateLimit-Remaining is found in the header"
Python 3.12 support: update requests dependency
Added _sdc_repository to commit comments
Add validation to detect archived repositories during discovery and sync
phases. The extraction will fail with ArchivedRepositoryError if a
repository is archived, unless 'extract_archived' is set to 'true' in
the config.

Changes:
- Add ArchivedRepositoryError exception class
- Add extract_archived config option (default: false)
- Add check_repo_archived() method to verify repo status via GitHub API
- Integrate archived check into verify_access_for_repo()
- Handle archived repos efficiently in get_all_repos() for org/* wildcards
…ck-016Jq68Vm3g4WhWkn3F99eWD

Add fail-fast check for archived repositories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants