diff options
author | Munyoki Kilyungi | 2024-01-08 12:36:45 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-01-08 12:44:55 +0300 |
commit | ffe6f24dc23c438413a5f1f9b4d269276eff19a7 (patch) | |
tree | 2d52d01ca57fce6ded1afb00faf7d6f19a3d9492 /gn3/llms | |
parent | a0b898df86efde75e85d355b19daf47e2cb0fea7 (diff) | |
download | genenetwork3-ffe6f24dc23c438413a5f1f9b4d269276eff19a7.tar.gz |
Update retry parameters for custom requests to Fahamu AI endpoint.
ATM the GN3 times out with the following trace:
```
2024-01-08 09:33:08 [2024-01-08 09:33:08 +0000] [50] [CRITICAL] WORKER TIMEOUT (pid:1589)
```
* gn3/llms/client.py (GeneNetworkQAClient.custom_request): Update
max_retries and retry_delay.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/llms')
-rw-r--r-- | gn3/llms/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py index 77ae32e..4fc6aa0 100644 --- a/gn3/llms/client.py +++ b/gn3/llms/client.py @@ -133,8 +133,8 @@ class GeneNetworkQAClient(Session): def custom_request(self, method, url, *args, **kwargs): - max_retries = 1 - retry_delay = 1 + max_retries = 5 + retry_delay = 4 response = super().request(method, url, *args, **kwargs) |