transifex / transifex-sync-zendesk

Allows you to sync sources to Transifex and translations to Zendesk.
https://www.zendesk.com/apps/transifex-sync/
Other
2 stars 3 forks source link

Article translations with retries #142

Closed pablotransifex closed 4 years ago

pablotransifex commented 4 years ago

Problem and/or solution

The problem is that when updating article translations multiple requests to zendesk api are created in parallel and at some point the zendesk service could respond with error 503 or similar (too busy)

The solution given is to apply a retries mechanism in order to call the failed request at some other point in time which could lead to a successful response. The mechanism is a backoff retry with jitter. The number of retries is 5 per request.

How to test

Please setup a local environment and use it to generate article translations with local server/db.

Reviewer checklist

Code:

PR: