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

Retry MediaConvert operations using retriable #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbklein
Copy link
Member

@mbklein mbklein commented Sep 30, 2021

AWS MediaConvert has rate limits that are easy to run up against when using ActiveEncode. These are mostly harmless – they just raise Aws::MediaConvert::Errors::TooManyRequestsException and the job goes back in the queue. This PR uses the retriable gem (already in use within the Avalon/Hyrax/Samvera ecosystem as a second-tier dependency) to retry MediaConvert requests three times with exponential backoff and random jitter.

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.

1 participant