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

misc: Auto retry PDF generate jobs in case of HTTP errors #2064

Merged
merged 1 commit into from
May 24, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

From time to time some Invoices::GeneratePdfJob are failing with the following error:

HTTP 503 - URI: http://pdf-web.default.svc.cluster.local/forms/chromium/convert/html. Error: Service Unavailable

Since to fix the issue we usually just have to retry the job, the retry could be automated.

Description

This PR adds a retry_on attribute for LagoHttpClient::HttpError for 6 attemps with exponnential wait time between each retry.

@vincent-pochet vincent-pochet merged commit 6340e92 into main May 24, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-retry-generate-pdf-jobs branch May 24, 2024 07:59
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.

2 participants