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 in a retry for urls that do not succeed #701

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

carolyncole
Copy link
Member

@carolyncole carolyncole commented Oct 16, 2024

Adding an open timeout and upping the read timeout

@carolyncole carolyncole changed the title Splitting the calls to see if it is the open or the read that is exceeding the limit Add in a retry for urls that do not succeed Oct 16, 2024
Adding an open timeout and upping the read timeout

# retry an errored urls a second time and send error only if they don't work a second time
urls_to_retry.each do |url|
process_url(url)
rescue => ex
Rails.logger.warn "Error importing record from #{url}. Exception: #{ex.message}"
Honeybadger.notify "Error importing record from #{url}. Exception: #{ex.message}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

3 participants