Skip to content

@retry decorators for io operations #156

@srosenbu

Description

@srosenbu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions