Skip to content

Conversation

@gwauge
Copy link

@gwauge gwauge commented Jan 21, 2026

It would be great, if the error/retrying logic was customizable.

Specifically, we need to retry on more than just the specified error types, for example OSError.
Additionally, on ClientErrors s3fs currently only retries if one of a few specific patterns matches. Being able to modify this behavior helps with handling non-standard error messages from object storage providers, such as retrying on "please throttle!".

This PR adds global methods add_retryable_error & set_custom_error_handler, which allow users to customize this behavior.

@martindurant
Copy link
Member

Thanks, this is a good idea!
There is quite a lot here, so it will take me some time to review.

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