Random timestamp in INTERFACE_CHANGE_EVENT subscription
Hello everyone,
This is a follow-up regarding an issue I reported in the official forum. I've encountered a weird behavior when subscribing to certain event types. Let's say I have a Tango device running on a server (Ubuntu 20.04 LTS) and I use pytango.DeviceProxy to subscribe to different events. When subscribing to normal "CHANGE" events on a given attribute, everything works fine:
>>> dm.subscribe_event("dishMode", tango.EventType.CHANGE_EVENT, EM())
2024-09-16 17:24:30.802752
change
35
>>> dm.subscribe_event("dishMode", tango.EventType.CHANGE_EVENT, EM())
2024-09-16 17:24:32.197378
change
36
>>> dm.subscribe_event("dishMode", tango.EventType.CHANGE_EVENT, EM())
2024-09-16 17:24:33.627955
change
37
However, if I subscribe to "INTERFACE_CHANGE_EVENT" specifically I get completely random timestamps, with past and future dates, as you can see below:
>>> dsm.subscribe_event(tango.EventType.INTERFACE_CHANGE_EVENT, tango.utils.EventCallback())
utils::_get_value()
1970-09-18 23:52:16 MID_DSH_0119/LMC/DS_MANAGER <UNKNOWN> INTR_CHANGE None
1
>>> dsm.subscribe_event(tango.EventType.INTERFACE_CHANGE_EVENT, tango.utils.EventCallback())
utils::_get_value()
1970-09-17 09:52:32 MID_DSH_0119/LMC/DS_MANAGER <UNKNOWN> INTR_CHANGE None
2
>>> dsm.subscribe_event(tango.EventType.INTERFACE_CHANGE_EVENT, tango.utils.EventCallback())
utils::_get_value()
1970-09-19 04:38:40 MID_DSH_0119/LMC/DS_MANAGER <UNKNOWN> INTR_CHANGE None
3
I am using Tango v9.3.4 with pytango 9.4.1. The issue occurs both locally and remotely (subscribing from different hosts). I attach the code to reproduce, with a minimal Tango device created with Pogo, and a check_subscription.py script. It would be great if you could take a look and shed some light on the issue.
Many thanks in advance,
Cristobal