Timeouts
Logic
All calls the wrapper makes towards FIO contain a specified timeout value on requests
to not keep your program in an infinite loop.
Timeouts can be defined by the user on two levels:
- Upon instantiation of the
FIO
class - Upon individual endpoint calls
FIO Wrapper includes a default fallback to 10.0
seconds, if no value is defined by the user. Overwriting to None
to disable timeouts is possible.
FIO
Instantiation
Define a default timeout for all requests by overwriting the Adapter
default.
FIO Wrapper will now apply the timeout of 5 seconds
to all calls it is making towards FIO.
Configuration File
A standard timeout can also be defined in a user's configuration file.
Individual Endpoint Calls
All endpoints allow passing the optional timeout
argument, which is of type Optional[float]
and defaults to None
.
It is highly recommended not to set any timeout to None
to avoid infinite loops especially on expensive FIO endpoints like Group
.