Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rate limit detection #30

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

louisgrasset
Copy link
Owner

It's been a few weeks the sync can take a few minutes because of the twitter api rate limit.
Instead of making the sync lasts for a too long time, this MR implements rate limit detection.

A tweet has 60 seconds to get fetched. Timeout is reset at each new successful fetch. After a failure, the sync stops getting new tweets & continues to the next steps

@louisgrasset louisgrasset added bug Something isn't working twitter labels Oct 18, 2023
@louisgrasset louisgrasset self-assigned this Oct 18, 2023
@louisgrasset louisgrasset force-pushed the feature/rate-limit-detection branch from 1b5d11d to f2f9abb Compare October 18, 2023 07:06
@louisgrasset louisgrasset force-pushed the feature/rate-limit-detection branch from f2f9abb to 8dfe7fe Compare October 18, 2023 07:08
@louisgrasset louisgrasset temporarily deployed to Production October 18, 2023 07:08 — with GitHub Actions Inactive
@louisgrasset louisgrasset force-pushed the feature/rate-limit-detection branch from 8dfe7fe to 437535d Compare October 18, 2023 07:59
@louisgrasset louisgrasset temporarily deployed to Production October 18, 2023 07:59 — with GitHub Actions Inactive
@louisgrasset louisgrasset force-pushed the feature/rate-limit-detection branch from 437535d to 2cfdd03 Compare October 18, 2023 11:48
@louisgrasset louisgrasset temporarily deployed to Production October 18, 2023 11:50 — with GitHub Actions Inactive
@louisgrasset louisgrasset merged commit 9e7ca41 into main Oct 18, 2023
1 check passed
@louisgrasset louisgrasset deleted the feature/rate-limit-detection branch October 18, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working twitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants