TWSD-597 - Urgent: AVX WebUI Unresponsive Issue on Version 2.7.3.7 || Stock holding || AS-19813
Review Request #820 — Created April 23, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| shuinvy | |
| AVX2 | |
| rel_avx_2_7_3 | |
| TWSD-597 | |
| Reviewers | |
| jasonchang, timlai, timsu | |
Use counter mechanism of request for API
The goal is improving the efficiency of the API: /api/avx/va/instance/VAInstance/_get_list_data
The counter mechanism is:
1. A request is sent to API, then in the process time(5 min, for example), there is no other request, then complete the process and save the request id and result and count in config file.
2. A request is sent to API, in the process time, there is second request comming, then the first request will stop processing and be waiting the result of second request.
3. So the request only process completely if it is the last request, otherwise it will waiting the result.
4. Because the result is save in the files, it will check files too old(over 10 mins) before processing, then remove the files.
The counter mechanism is in the handler.py file.
