Revision 623476e2596044fcdad7bd52507387e9254e8f69 authored by Maria Khrustaleva on 02 November 2023, 14:27:23 UTC, committed by GitHub on 02 November 2023, 14:27:23 UTC
Try to fix the issue described in cart 322
```
File \"/opt/venv/lib/python3.10/site-packages/botocore/session.py\", line 941, in get_component\n del self._deferred[name]\nKeyError: 'endpoint_resolver'\n","status_code":500
``` 
Generally, this approach increases the time of creating clients but it
does not affect us much because we create a client once or twice times
for some operations (cloud storage creating, task creating with cloud
storage data, retrieving a chunk, etc)

![image](https://github.com/opencv/cvat/assets/49038720/5adb4434-4d05-4882-b70c-ea760852b367)


https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html#multithreading-or-multiprocessing-with-resources

https://boto3.amazonaws.com/v1/documentation/api/latest/guide/session.html#multithreading-or-multiprocessing-with-sessions

Co-authored-by: Andrey Zhavoronkov <andrey@cvat.ai>
1 parent e1fe140
History
File Mode Size
server.conf -rw-r--r-- 1.3 KB
utils.conf -rw-r--r-- 1.6 KB
worker.analytics_reports.conf -rw-r--r-- 1.0 KB
worker.annotation.conf -rw-r--r-- 1.0 KB
worker.export.conf -rw-r--r-- 1.0 KB
worker.import.conf -rw-r--r-- 1.3 KB
worker.quality_reports.conf -rw-r--r-- 1.0 KB
worker.webhooks.conf -rw-r--r-- 1.1 KB

back to top