vikinganalytics / mvg

Repository for python library supporting Viking Analytics Multiviz Engine API
Apache License 2.0
4 stars 2 forks source link

Retry mechanism for specific failed requests #178

Closed vnadhan closed 1 year ago

vnadhan commented 1 year ago

Description

The exception 502 Bad Gateway is quite a common exception after we have moved the cloud infrastructure to the AWS. The error is probably due to the Load balancer being unreachable or busy. In such cases, it is a good idea to retry the request. The code retries the request thrice before returning a response or an exception.

New dependencies: (Added to requirements_dev.txt)

Fixes #167

Type of Change

Checklist

Requirements