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

@retry decorators for io operations #156

Open
srosenbu opened this issue Apr 26, 2024 · 0 comments
Open

@retry decorators for io operations #156

srosenbu opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@srosenbu
Copy link
Member

This might be a not-so-relevant edge case, but when you write data to a network drive (which might often be the case for us) it has happened to me that the network drive disconnects randomly and my simulation stops. Using a package like tenacity, it would be relatively easy to wrap all io functions (like plots for paraview) with @retry to retry the operation acertain number of times with a certain time delay in between trys.

https://tenacity.readthedocs.io/en/latest/

Again, probably an edge case, but it would not be a very intrusive change to the code

@srosenbu srosenbu added the enhancement New feature or request label Apr 26, 2024
@srosenbu srosenbu added this to the Hackathon 2024 milestone Apr 26, 2024
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

No branches or pull requests

1 participant