Skip to content

[21/n] [wicketd] compute transceiver staleness at read time, per switch#10888

Open
sunshowers wants to merge 1 commit into
sunshowers/spr/main.21n-wicketd-compute-transceiver-staleness-at-read-time-per-switchfrom
sunshowers/spr/21n-wicketd-compute-transceiver-staleness-at-read-time-per-switch
Open

[21/n] [wicketd] compute transceiver staleness at read time, per switch#10888
sunshowers wants to merge 1 commit into
sunshowers/spr/main.21n-wicketd-compute-transceiver-staleness-at-read-time-per-switchfrom
sunshowers/spr/21n-wicketd-compute-transceiver-staleness-at-read-time-per-switch

Conversation

@sunshowers

@sunshowers sunshowers commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Found while reviewing #10857.

Currently, for transceivers:

  1. There's a single last_seen across both switches.
  2. The last_seen is snapshotted at update time, which means that it would only measure how long the update was in the mpsc channel for.

Both of these seem incorrect, and in particular the second one would show up as wicket always reporting <1s.

image

Fix both these issues.

To maintain the same wire shape, for point 1 we pick max. (The commissioning API will publish per-switch last seen values.) For point 2 there will be a behavior change visible in wicket, but that seems correct.

Created using spr 1.3.6-beta.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants