duplicated messages in spock after restarting MacroServer with tango10
At DESY we have start to test sardana with pytango 10.0.3. (upgrade from 9.3.5). I've have noticed that from time to time in spock I get duplicated messages just after restarting MacroServer e.g.
p00/door/xpsjk.01 [1]: ascan exp_dmy01 0 10 10 0.2
Operation will be saved in /tmp/myd.dat (Spec from SPEC_FileRecorder)
Operation will be saved in /tmp/myd.dat (Spec from SPEC_FileRecorder)
Scan #16 started at Mon Aug 4 11:42:34 2025. It will take at least 0:00:02.200832
#Pt No exp_dmy01 exp_t01 exp_c27 exp_c03 exp_c05 exp_mca01 exp_vfc05 dt
#Pt No exp_dmy01 exp_t01 exp_c27 exp_c03 exp_c05 exp_mca01 exp_vfc05 dt
0 0 0.2 139.351 104.716 0.0117523 (2048,) 7.036e+08 0.287694
1 1 0.2 185.189 6.60208 -0.0398289 (2048,) 7.42e+08 0.73535
1 1 0.2 185.189 6.60208 -0.0398289 (2048,) 7.42e+08 0.73535
2 2 0.2 152.671 0.180449 0.0406164 (2048,) 6.753e+08 1.17543
3 3 0.2 71.0562 0.0316274 -0.00848496 (2048,) 3.516e+08 1.62302
4 4 0.2 18.4479 55.6075 -0.0145434 (2048,) 7.738e+08 2.0675
5 5 0.2 2.66347 106.926 0.693156 (2048,) 9.15e+07 2.51409
6 6 0.2 2.93194 91.4418 7.47069 (2048,) 5.997e+08 2.96668
7 7 0.2 37.9593 34.6736 42.1603 (2048,) 2.39e+07 3.41023
8 8 0.2 137.293 5.87552 116.942 (2048,) 4.195e+08 3.85644
9 9 0.2 136.015 0.399962 160.709 (2048,) 6.692e+08 4.30311
10 10 0.2 53.194 65.9102 0.0114371 (2048,) 2.541e+08 4.75904
Operation saved in /tmp/myd.dat (Spec)
Scan #16 ended at Mon Aug 4 11:42:39 2025, taking 0:00:05.185443. Dead time 52.9% (setup time 4.7%, motion dead time 2.6%)
The second scan looks ok without duplacated Operation will be saved in /tmp/myd.dat (Spec from SPEC_FileRecorder
It happens also for other spock messages sent in different log streams.
This duplication sometime disappears when I restart tango-db/tango-starter services.
For me it looks like the first kind of tango events is received twice (but sent once) so probably it is a problem of pytango/tango 10. I report it here because I could not reproduce the error for other tango servers.
Sometime it is hard to reproduce it wherefore I would like to ask if anyone has noticed any similar issue?