hephy-dd / comet-pqc

Process Quality Control for CMS outer tracker
https://hephy-dd.github.io/comet-pqc/
GNU General Public License v3.0
4 stars 1 forks source link

Issues with slow environment box responses #184

Closed arnobaer closed 2 years ago

arnobaer commented 2 years ago

Communication with the environment box runs in a thread using a request queue. If too many requests are placed this can result in request timeouts due to the fact that handling the requests might take longer than the timeout of the most recent request in the queue.

Queries to PC_DATA can ocasionally take up to 1 second and causes request timeouts when both UI and measurements request PC_DATA in parallel.

This issue can be resolved by moving the periodic query to PC_DATA inside the environment thread and serving a cached value for both UI and measurements.