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

Add capability for users to opt-in to waiting until rate limit reset time #184

Closed
thedavecarroll opened this issue Nov 23, 2022 · 0 comments · Fixed by #187
Closed

Add capability for users to opt-in to waiting until rate limit reset time #184

thedavecarroll opened this issue Nov 23, 2022 · 0 comments · Fixed by #187
Assignees
Labels
CHANGELOG.5.Changed CHANGELOG Entry Type enhancement New feature or request
Milestone

Comments

@thedavecarroll
Copy link
Owner

thedavecarroll commented Nov 23, 2022

In some scenarios, the BluebirdPS user may want to wait for the rate limit reset time to expire and resume the API calls.

  • Add a new item in BluebirdPS.RateLimitAction enum called Resume.
  • Add logic to support resuming from a rate limit threshold transgression.
    • Regardless of how many minutes before the rate limit is reset, pause for 60 seconds to provide feedback to the user.
    • Provide progress bar for interactive users and forced verbose for non-interactive users (hoping this will work in CI).
    • Ensure there is a maximum amount of times the process will be resumed to avoid long running executions. Most rate limits reset after 15 minutes. Setting the resume count to 4 would give the user 5 sets of full API call. It's also important to set the MaxResultsPerPage to the maximum allowed for a given command.
  • Add Paginate() method to BluebirdPS.TwitterRequest to facilitate pagination, including resuming from rate limit.
  • Move rate limit processing from Write-TwitterResponse to Invoke-TwitterRequest.
  • Remove implicit default BluebirdPS.Configuration.RateLimitAction. Defaults to 'Verbose`.
@thedavecarroll thedavecarroll added enhancement New feature or request CHANGELOG.5.Changed CHANGELOG Entry Type labels Nov 23, 2022
@thedavecarroll thedavecarroll added this to the Release 0.8.2 milestone Nov 23, 2022
@thedavecarroll thedavecarroll self-assigned this Nov 23, 2022
@thedavecarroll thedavecarroll changed the title Add RateLimitResume Property to Configuration and TwitterRequest Add Capability for Users to Opt-in to Waiting until Rate Limit Reset Time Nov 24, 2022
@thedavecarroll thedavecarroll changed the title Add Capability for Users to Opt-in to Waiting until Rate Limit Reset Time Add capability for users to opt-in to waiting until rate limit reset time Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CHANGELOG.5.Changed CHANGELOG Entry Type enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant