Skip to content

Handle ReadTimeout from actinia with retries#65

Merged
ninsbl merged 6 commits intoactinia-org:mainfrom
ninsbl:handle_read_timeout
Mar 5, 2026
Merged

Handle ReadTimeout from actinia with retries#65
ninsbl merged 6 commits intoactinia-org:mainfrom
ninsbl:handle_read_timeout

Conversation

@ninsbl
Copy link
Collaborator

@ninsbl ninsbl commented Mar 5, 2026

We occasionally experience ReadTimeout from actinia under high ressource usage.

The asynchounous processing continues fine, but it takes too long to get a status response and the client throws an exception, leading us to restart a job that is already running. That is esp. unfortunate as it further increases the system load that is already high and may lead race conditions and other failures...

Instead of failing right away, it would be great to allow for retries in that case. For now, we do catch those cases in our local code, but it would of course be more meaningful to have it in the client....

This PR implements retries in case of ReadTimeout.
Happy to adjust the code as prefered...

@ninsbl ninsbl requested a review from anikaweinmann March 5, 2026 11:27
@ninsbl ninsbl added the enhancement New feature or request label Mar 5, 2026
Copy link
Member

@anikaweinmann anikaweinmann left a comment

Choose a reason for hiding this comment

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

Thank you very much. The change looks good and very helpful.

@ninsbl ninsbl merged commit 8414706 into actinia-org:main Mar 5, 2026
2 checks passed
@ninsbl ninsbl deleted the handle_read_timeout branch March 5, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants