sdk-python
sdk-python copied to clipboard
Add `timeout` parameter to `edge.inferences.run` method
Checklist
Please review first that the issue is fully related with this SDK by checking the relevant checkboxes ([x]
).
- [x] I have a Modzy API Key active and have the entitlements to perform the desired action.
- [x] I review that have access to Modzy API host.
- [x] I think that is a error specific to the SDK.
- [x] I review the documentation and existing issues in order to not duplicate existing ones.
- [x] I am willing to follow-up on comments in a timely manner.
Info
- Modzy SDK version: 0.11.5
- Python version: 3.8.10
- Operating System: Linux
Description
The edge client inferences.run
method is a wrapper around inferences.perform_inference
and inferences.block_until_complete
. The issue is, this method does not accept a timeout parameter, so for models that take longer than 30 seconds to perform inference (default value in block_until_complete
method, you have to manually use the perform inference --> block until complete methods.