Skip to content

Retry mechanism in fetch_openml #21397

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

Closed
ogrisel opened this issue Oct 22, 2021 · 2 comments · Fixed by #21901
Closed

Retry mechanism in fetch_openml #21397

ogrisel opened this issue Oct 22, 2021 · 2 comments · Fixed by #21901

Comments

@ogrisel
Copy link
Member

ogrisel commented Oct 22, 2021

Describe the workflow you want to enable

The purpose of this request is to limit the number of random failures we get in automated executions (e.g. on our CI) caused by unreliable network connections.

Describe your proposed solution

Add a n_retries=3 parameter to fetch_openml. In case of HTTPError, fetch_openml would automatically retry up to n_retries times, waiting 1s between each trial.

Other fetch_* methods could benefit from a similar option.

@ogrisel
Copy link
Member Author

ogrisel commented Oct 22, 2021

Originally discussed in #21178 (comment).

@puhuk
Copy link
Contributor

puhuk commented Oct 22, 2021

Let me try to resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants