Skip to content

Conversation

jjmerchante
Copy link
Contributor

This change adds retry logic for HTTP 500 errors when fetching answers. If the request fails, it will retry up to a maximum number of attempts, with exponential backoff.

A sleep is included between queries to avoid hitting rate limits that slow down the process.

This change adds retry logic for HTTP 500 errors when
fetching answers. If the request fails, it will retry
up to a maximum number of attempts, with exponential
backoff. After several retries the question answers are
skipped.

A sleep is included between queries to avoid hitting rate
limits that slow down the process.

Signed-off-by: Jose Javier Merchante <[email protected]>
Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

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

LGTM

@sduenas sduenas merged commit 30874f9 into chaoss:main Sep 29, 2025
6 checks passed
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