From 5f6520214da758cea198ea5ac1d43a4c85841239 Mon Sep 17 00:00:00 2001 From: x01dc Date: Thu, 17 Sep 2026 15:18:47 +0200 Subject: [PATCH] fix(flomni): use cached read for sample-name poll in tomo params widget The OMNY_TomoParams widget polled flomni_samples.sample_names.sample0 uncached every 2s to refresh a display label. Over a long interlock lock this produced thousands of RPC calls, overflowing the client's shared 100-entry request buffer (RequestStorage) and evicting a pending scan request, which stalled the queue with no error. The signal is auto-monitored and already live in Redis, so read it from there instead of round-tripping to the device server. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01GCaaQQSYGCbkAsRnALWC3h --- csaxs_bec/bec_widgets/widgets/tomo_params/tomo_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csaxs_bec/bec_widgets/widgets/tomo_params/tomo_params.py b/csaxs_bec/bec_widgets/widgets/tomo_params/tomo_params.py index a23613d0..b7484d49 100644 --- a/csaxs_bec/bec_widgets/widgets/tomo_params/tomo_params.py +++ b/csaxs_bec/bec_widgets/widgets/tomo_params/tomo_params.py @@ -2351,7 +2351,7 @@ SETUP_PROFILES: dict[str, dict[str, Any]] = { "requested_to_stepsize": _requested_to_stepsize, "compute_fermat_positions": _compute_fermat_positions_flomni, "fermat_position_fields": ["tomo_shellstep", "fermat_asymmetry", "fovx", "fovy"], - "sample_name_getter": lambda w: w.dev.flomni_samples.sample_names.sample0.get(), + "sample_name_getter": lambda w: w.dev.flomni_samples.sample_names.sample0.get(cached=True), "cli_hint_name": "flomni", }, "lamni": {