Skip to content

Conversation

@mb-a
Copy link
Contributor

@mb-a mb-a commented Jul 20, 2021

Pull Request Checklist

Description of the PR

Occassionally when making a report using Lusid data, a gateway error will interrupt the entire report.
Instead of making the ApiException try excepts in our codebase even more egregious, I thought to solve the problem closer to the source, by allowing rest to recursively call itself up to 3 times when a 502 is encountered.
Naturally, on the third failed 502 call, an ApiException will be raised as normal, and the "response time" for a 502 is sufficiently small, so the tradeoff on performance/reliability is worth it.

mb-a added 2 commits July 20, 2021 10:17
Occassionally when making a report using Lusid data, a gateway error will interrupt the entire report.
Instead of making the ApiException try excepts even more egregious, I thought to solve the problem closer to the source, by allowing rest to recursively call itself up to 3 times when a 502 is encountered.
Naturally, on the third failed 502 call, an ApiException will be raised as normal, and the "response time" for a 502 is sufficiently small, so the tradeoff on performance/reliability is worth it.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

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