Analysis disconnect and connect again frequently (running locally, not on Tago)

Analysis disconnect and connect again frequently (running locally, not on Tago)

Hello,
Some time ago I posted a similar issue related to the disconnection of analysis when running them locally which was solved by updating the python-socketio module. However now my issue is that when the my server is running for quite some time, all analysis running are disconnected from Tago, and reconnected. This process is fast so I don't see it has major impact on my app because it is unlikely that an analysis is trigger during this disconnection time, but it makes anyways the app less robust and it is quite annoying to see logs to find something useful and find many of this connections/disconnections. Do you know why this happens? (I am using python 3.9.10 and python-socketio==5.5.2).
I attach the logs with timestamps:
  1. 2022-04-18T14:02:34.531627340Z Connected to TagoIO, Getting analysis information...
  2. 2022-04-18T14:02:34.532613840Z Connected to TagoIO, Getting analysis information...
  3. 2022-04-18T14:02:34.533063870Z Connected to TagoIO, Getting analysis information...
  4. 2022-04-18T14:02:34.533563460Z Connected to TagoIO, Getting analysis information...
  5. 2022-04-18T14:02:34.537040710Z Connected to TagoIO, Getting analysis information...
  6. 2022-04-18T14:02:34.538547820Z Connected to TagoIO, Getting analysis information...
  7. 2022-04-18T14:02:34.539006150Z Connected to TagoIO, Getting analysis information...
  8. 2022-04-18T14:02:34.543431150Z Connected to TagoIO, Getting analysis information...
  9. 2022-04-18T14:02:34.548533030Z Connected to TagoIO, Getting analysis information...
  10. 2022-04-18T14:02:34.562567390Z Connected to TagoIO, Getting analysis information...
  11. 2022-04-18T14:02:34.571905550Z Connected to TagoIO, Getting analysis information...
  12. 2022-04-18T14:02:34.572873420Z Analysis [business_load_balancing_mode] Started.
  13. 2022-04-18T14:02:34.573361800Z Analysis [business_metervalues_mqtt] Started.
  14. 2022-04-18T14:02:34.573581550Z Analysis [business_delete_RFID] Started.
  15. 2022-04-18T14:02:34.573890820Z Analysis [pay_stop_transaction] Started.
  16. 2022-04-18T14:02:34.574397300Z Analysis [business_change_availability] Started.
  17. 2022-04-18T14:02:34.578581430Z Analysis [business_change_card_id_alias] Started.
  18. 2022-04-18T14:02:34.579524500Z Analysis [bussines_change_max_power_grid] Started.
  19. 2022-04-18T14:02:34.580919760Z Analysis [business_change_rate_list] Started.
  20. 2022-04-18T14:02:34.581226830Z Analysis [pay_start_transaction] Started.
  21. 2022-04-18T14:02:34.588190990Z Analysis [business_ocpp_requests] Started.
  22. 2022-04-18T14:02:34.589893310Z Analysis [business_send_email_with_costs] Started.
  23. 2022-04-18T14:02:34.776473220Z Connected to TagoIO, Getting analysis information...
  24. 2022-04-18T14:02:34.790470100Z Analysis [business_create_RFID] Started.
  25. 2022-04-18T15:03:01.211291928Z
  26. 2022-04-18T15:03:01.211371418Z Disconnected from TagoIO.
  27. 2022-04-18T15:03:01.211389328Z
  28. 2022-04-18T15:03:01.211409638Z
  29. 2022-04-18T15:03:01.211413178Z
  30. 2022-04-18T15:03:01.211416218Z Disconnected from TagoIO.
  31. 2022-04-18T15:03:01.211419198Z
  32. 2022-04-18T15:03:01.211422158Z
  33. 2022-04-18T15:03:01.211424998Z
  34. 2022-04-18T15:03:01.211427768Z Disconnected from TagoIO.
  35. 2022-04-18T15:03:01.211430648Z
  36. 2022-04-18T15:03:01.211433558Z
  37. 2022-04-18T15:03:01.211436498Z
  38. 2022-04-18T15:03:01.211728708Z Disconnected from TagoIO.
  39. 2022-04-18T15:03:01.211738198Z
  40. 2022-04-18T15:03:01.211741528Z
  41. 2022-04-18T15:03:01.211744398Z
  42. 2022-04-18T15:03:01.211939298Z Disconnected from TagoIO.
  43. 2022-04-18T15:03:01.212204868Z
  44. 2022-04-18T15:03:01.212214188Z
  45. 2022-04-18T15:03:01.212217348Z
  46. 2022-04-18T15:03:01.212535548Z Disconnected from TagoIO.
  47. 2022-04-18T15:03:01.212566198Z
  48. 2022-04-18T15:03:01.212568878Z
  49. 2022-04-18T15:03:06.377905637Z Connected to TagoIO, Getting analysis information...
  50. 2022-04-18T15:03:06.388970977Z Analysis [business_change_card_id_alias] Started.
  51. 2022-04-18T15:03:06.502499487Z Connected to TagoIO, Getting analysis information...
  52. 2022-04-18T15:03:06.508985477Z Connected to TagoIO, Getting analysis information...
  53. 2022-04-18T15:03:06.528313667Z Analysis [business_load_balancing_mode] Started.
  54. 2022-04-18T15:03:06.534818307Z Analysis [pay_stop_transaction] Started.
  55. 2022-04-18T15:03:06.690925777Z Connected to TagoIO, Getting analysis information...
  56. 2022-04-18T15:03:06.700191387Z Connected to TagoIO, Getting analysis information...
  57. 2022-04-18T15:03:06.701536077Z Analysis [business_delete_RFID] Started.
  58. 2022-04-18T15:03:06.718428777Z Analysis [business_change_rate_list] Started.
  59. 2022-04-18T15:03:06.984233037Z Connected to TagoIO, Getting analysis information...
  60. 2022-04-18T15:03:07.056750587Z Analysis [business_metervalues_mqtt] Started.
  61. 2022-04-18T15:09:20.391315763Z
  62. 2022-04-18T15:09:20.391520154Z Disconnected from TagoIO.
  63. 2022-04-18T15:09:20.391604043Z
  64. 2022-04-18T15:09:20.391687234Z
  65. 2022-04-18T15:09:20.392126283Z
  66. 2022-04-18T15:09:20.392282194Z Disconnected from TagoIO.
  67. 2022-04-18T15:09:20.392357623Z
  68. 2022-04-18T15:09:20.392443543Z
  69. 2022-04-18T15:09:20.395095494Z
  70. 2022-04-18T15:09:20.395224283Z Disconnected from TagoIO.
  71. 2022-04-18T15:09:20.395293303Z
  72. 2022-04-18T15:09:20.395400734Z
  73. 2022-04-18T15:09:20.395674703Z
  74. 2022-04-18T15:09:20.395809894Z Disconnected from TagoIO.
  75. 2022-04-18T15:09:20.395878163Z
  76. 2022-04-18T15:09:20.395970563Z
  77. 2022-04-18T15:09:20.396337103Z
  78. 2022-04-18T15:09:20.396447094Z Disconnected from TagoIO.
  79. 2022-04-18T15:09:20.396523314Z
  80. 2022-04-18T15:09:20.396605963Z
  81. 2022-04-18T15:09:20.396762994Z
  82. 2022-04-18T15:09:20.396871803Z Disconnected from TagoIO.
  83. 2022-04-18T15:09:20.396946694Z
  84. 2022-04-18T15:09:20.397027194Z
  85. 2022-04-18T15:09:20.397838054Z
  86. 2022-04-18T15:09:20.397964743Z Disconnected from TagoIO.
  87. 2022-04-18T15:09:20.398048954Z
  88. 2022-04-18T15:09:20.398131943Z
  89. 2022-04-18T15:09:20.398351443Z
  90. 2022-04-18T15:09:20.398472123Z Disconnected from TagoIO.
  91. 2022-04-18T15:09:20.398523874Z
  92. 2022-04-18T15:09:20.398596474Z
  93. 2022-04-18T15:09:20.398737214Z
  94. 2022-04-18T15:09:20.398856343Z Disconnected from TagoIO.
  95. 2022-04-18T15:09:20.398908054Z
  96. 2022-04-18T15:09:20.398982054Z
  97. 2022-04-18T15:09:20.399152954Z
  98. 2022-04-18T15:09:20.399267863Z Disconnected from TagoIO.
  99. 2022-04-18T15:09:20.399317894Z
  100. 2022-04-18T15:09:20.399406814Z
  101. 2022-04-18T15:09:20.399794323Z
  102. 2022-04-18T15:09:20.399910403Z Disconnected from TagoIO.
  103. 2022-04-18T15:09:20.399960914Z
  104. 2022-04-18T15:09:20.400032094Z
  105. 2022-04-18T15:09:20.400165603Z
  106. 2022-04-18T15:09:20.400282003Z Disconnected from TagoIO.
  107. 2022-04-18T15:09:20.400332883Z
  108. 2022-04-18T15:09:20.400404134Z
  109. 2022-04-18T15:09:25.443894833Z Connected to TagoIO, Getting analysis information...
  110. 2022-04-18T15:09:25.457226203Z Analysis [business_delete_RFID] Started.
  111. 2022-04-18T15:09:25.540480163Z Connected to TagoIO, Getting analysis information...
  112. 2022-04-18T15:09:25.651113073Z Analysis [business_ocpp_requests] Started.
  113. 2022-04-18T15:09:25.849204313Z Connected to TagoIO, Getting analysis information...
  114. 2022-04-18T15:09:25.849668943Z Connected to TagoIO, Getting analysis information...
  115. 2022-04-18T15:09:25.945711983Z Connected to TagoIO, Getting analysis information...
  116. 2022-04-18T15:09:26.042282123Z Connected to TagoIO, Getting analysis information...
  117. 2022-04-18T15:09:26.042741933Z Connected to TagoIO, Getting analysis information...
  118. 2022-04-18T15:09:26.243013073Z Connected to TagoIO, Getting analysis information...
  119. 2022-04-18T15:09:26.243505963Z Connected to TagoIO, Getting analysis information...
  120. 2022-04-18T15:09:26.246843523Z Connected to TagoIO, Getting analysis information...
  121. 2022-04-18T15:09:26.247342963Z Connected to TagoIO, Getting analysis information...
  122. 2022-04-18T15:09:26.639537953Z Connected to TagoIO, Getting analysis information...
  123. 2022-04-18T15:09:31.666108973Z Analysis [pay_start_transaction] Started.
  124. 2022-04-18T15:09:31.666145713Z Analysis [business_change_card_id_alias] Started.
  125. 2022-04-18T15:09:32.243362413Z Analysis [business_change_availability] Started.
  126. 2022-04-18T15:09:32.451612062Z Analysis [business_metervalues_mqtt] Started.
  127. 2022-04-18T15:09:32.538099812Z Analysis [pay_stop_transaction] Started.
  128. 2022-04-18T15:09:33.446253172Z Analysis [business_create_RFID] Started.
  129. 2022-04-18T15:09:33.643145182Z Analysis [business_load_balancing_mode] Started.
  130. 2022-04-18T15:09:33.649051442Z Analysis [business_change_rate_list] Started.
  131. 2022-04-18T15:09:33.649960882Z Analysis [bussines_change_max_power_grid] Started.
  132. 2022-04-18T15:09:34.348042652Z Analysis [business_send_email_with_costs] Started.

  133. 2022-04-18T19:07:43.081587009Z
  134. 2022-04-18T19:07:43.081941658Z Disconnected from TagoIO.
  135. 2022-04-18T19:07:43.082044549Z
  136. 2022-04-18T19:07:43.082161178Z
  137. 2022-04-18T19:07:43.082476689Z
  138. 2022-04-18T19:07:43.082644809Z Disconnected from TagoIO.
  139. 2022-04-18T19:07:43.082729618Z
  140. 2022-04-18T19:07:43.082845998Z
  141. 2022-04-18T19:07:43.083039869Z
  142. 2022-04-18T19:07:43.083209769Z Disconnected from TagoIO.
  143. 2022-04-18T19:07:43.083355569Z
  144. 2022-04-18T19:07:43.083470598Z
  145. 2022-04-18T19:07:43.083679969Z
  146. 2022-04-18T19:07:43.083856229Z Disconnected from TagoIO.
  147. 2022-04-18T19:07:43.083950429Z
  148. 2022-04-18T19:07:43.084060078Z
  149. 2022-04-18T19:07:43.085029269Z
  150. 2022-04-18T19:07:43.085210538Z Disconnected from TagoIO.
  151. 2022-04-18T19:07:43.085305829Z
  152. 2022-04-18T19:07:43.085433169Z
  153. 2022-04-18T19:07:43.085635098Z
  154. 2022-04-18T19:07:43.085807809Z Disconnected from TagoIO.
  155. 2022-04-18T19:07:43.085902658Z
  156. 2022-04-18T19:07:43.086010798Z
  157. 2022-04-18T19:07:43.086234489Z
  158. 2022-04-18T19:07:43.086388409Z Disconnected from TagoIO.
  159. 2022-04-18T19:07:43.086487598Z
  160. 2022-04-18T19:07:43.086593349Z
  161. 2022-04-18T19:07:43.086771678Z
  162. 2022-04-18T19:07:43.086919569Z Disconnected from TagoIO.
  163. 2022-04-18T19:07:43.087000498Z
  164. 2022-04-18T19:07:43.087106498Z
  165. 2022-04-18T19:07:43.087279669Z
  166. 2022-04-18T19:07:43.087425118Z Disconnected from TagoIO.
  167. 2022-04-18T19:07:43.087506918Z
  168. 2022-04-18T19:07:43.087625618Z
  169. 2022-04-18T19:07:43.088064929Z
  170. 2022-04-18T19:07:43.088210378Z Disconnected from TagoIO.
  171. 2022-04-18T19:07:43.088308149Z
  172. 2022-04-18T19:07:43.088413558Z
  173. 2022-04-18T19:07:43.088601529Z
  174. 2022-04-18T19:07:43.088748038Z Disconnected from TagoIO.
  175. 2022-04-18T19:07:43.088855169Z
  176. 2022-04-18T19:07:43.088963798Z
  177. 2022-04-18T19:07:43.089293458Z
  178. 2022-04-18T19:07:43.089447549Z Disconnected from TagoIO.
  179. 2022-04-18T19:07:43.089546929Z
  180. 2022-04-18T19:07:43.089650989Z
  181. 2022-04-18T19:07:48.197327688Z Connected to TagoIO, Getting analysis information...
  182. 2022-04-18T19:07:48.209203948Z Connected to TagoIO, Getting analysis information...
  183. 2022-04-18T19:07:48.211313978Z Analysis [business_change_card_id_alias] Started.
  184. 2022-04-18T19:07:48.221332688Z Analysis [business_send_email_with_costs] Started.
  185. 2022-04-18T19:07:48.242244298Z Connected to TagoIO, Getting analysis information...
  186. 2022-04-18T19:07:48.263350778Z Analysis [pay_start_transaction] Started.
  187. 2022-04-18T19:07:48.389102498Z Connected to TagoIO, Getting analysis information...
  188. 2022-04-18T19:07:48.403058928Z Analysis [business_create_RFID] Started.
  189. 2022-04-18T19:07:48.426421618Z Connected to TagoIO, Getting analysis information...
  190. 2022-04-18T19:07:48.441908878Z Analysis [business_change_rate_list] Started.
  191. 2022-04-18T19:07:48.447350258Z Connected to TagoIO, Getting analysis information...
  192. 2022-04-18T19:07:48.468055788Z Analysis [business_ocpp_requests] Started.
  193. 2022-04-18T19:07:48.480889448Z Connected to TagoIO, Getting analysis information...
  194. 2022-04-18T19:07:48.548480098Z Analysis [pay_stop_transaction] Started.
  195. 2022-04-18T19:07:48.641617268Z Connected to TagoIO, Getting analysis information...
  196. 2022-04-18T19:07:48.656405278Z Analysis [business_metervalues_mqtt] Started.
  197. 2022-04-18T19:07:48.783355728Z Connected to TagoIO, Getting analysis information...
  198. 2022-04-18T19:07:48.839451978Z Analysis [bussines_change_max_power_grid] Started.
  199. 2022-04-18T19:07:48.939852788Z Connected to TagoIO, Getting analysis information...
  200. 2022-04-18T19:07:48.940268498Z Connected to TagoIO, Getting analysis information...
  201. 2022-04-18T19:07:48.944699608Z Connected to TagoIO, Getting analysis information...
  202. 2022-04-18T19:07:49.541376928Z Analysis [business_load_balancing_mode] Started.
  203. 2022-04-18T19:07:49.541860938Z Analysis [business_change_availability] Started.
  204. 2022-04-18T19:07:49.645008058Z Analysis [business_delete_RFID] Started.
  205. 2022-04-18T19:13:58.405827255Z
  206. 2022-04-18T19:13:58.406101855Z Disconnected from TagoIO.
  207. 2022-04-18T19:13:58.406161535Z
  208. 2022-04-18T19:13:58.406246775Z
  209. 2022-04-18T19:13:58.406736795Z
  210. 2022-04-18T19:13:58.406854905Z Disconnected from TagoIO.
  211. 2022-04-18T19:13:58.406926695Z
  212. 2022-04-18T19:13:58.407004895Z
  213. 2022-04-18T19:13:58.407154005Z
  214. 2022-04-18T19:13:58.407273225Z Disconnected from TagoIO.
  215. 2022-04-18T19:13:58.407346425Z
  216. 2022-04-18T19:13:58.407425575Z
  217. 2022-04-18T19:13:58.407828555Z
  218. 2022-04-18T19:13:58.407936485Z Disconnected from TagoIO.
  219. 2022-04-18T19:13:58.408010345Z
  220. 2022-04-18T19:13:58.408089455Z
  221. 2022-04-18T19:13:58.408238675Z
  222. 2022-04-18T19:13:58.408358265Z Disconnected from TagoIO.
  223. 2022-04-18T19:13:58.408435585Z
  224. 2022-04-18T19:13:58.408516615Z
  225. 2022-04-18T19:13:58.408655985Z
  226. 2022-04-18T19:13:58.408775975Z Disconnected from TagoIO.
  227. 2022-04-18T19:13:58.408847495Z
  228. 2022-04-18T19:13:58.408925865Z
  229. 2022-04-18T19:13:58.409113205Z
  230. 2022-04-18T19:13:58.409223765Z Disconnected from TagoIO.
  231. 2022-04-18T19:13:58.409300345Z
  232. 2022-04-18T19:13:58.409381935Z
  233. 2022-04-18T19:13:58.409953645Z
  234. 2022-04-18T19:13:58.410070585Z Disconnected from TagoIO.
  235. 2022-04-18T19:13:58.410138965Z
  236. 2022-04-18T19:13:58.410244375Z
  237. 2022-04-18T19:13:58.410381435Z
  238. 2022-04-18T19:13:58.410497705Z Disconnected from TagoIO.
  239. 2022-04-18T19:13:58.410571105Z
  240. 2022-04-18T19:13:58.410641955Z
  241. 2022-04-18T19:13:58.410810425Z
  242. 2022-04-18T19:13:58.410921925Z Disconnected from TagoIO.
  243. 2022-04-18T19:13:58.410971525Z
  244. 2022-04-18T19:13:58.411057385Z
  245. 2022-04-18T19:13:58.411328605Z
  246. 2022-04-18T19:13:58.411438455Z Disconnected from TagoIO.
  247. 2022-04-18T19:13:58.411511965Z
  248. 2022-04-18T19:13:58.411568545Z
  249. 2022-04-18T19:13:58.411701105Z
  250. 2022-04-18T19:13:58.411814635Z Disconnected from TagoIO.
  251. 2022-04-18T19:13:58.411864155Z
  252. 2022-04-18T19:13:58.411951895Z
  253. 2022-04-18T19:14:03.435735425Z Connected to TagoIO, Getting analysis information...
  254. 2022-04-18T19:14:03.455118145Z Analysis [business_send_email_with_costs] Started.
  255. 2022-04-18T19:14:03.544050605Z Connected to TagoIO, Getting analysis information...
  256. 2022-04-18T19:14:03.558284834Z Analysis [business_delete_RFID] Started.
  257. 2022-04-18T19:14:03.617804434Z Connected to TagoIO, Getting analysis information...
  258. 2022-04-18T19:14:03.631224234Z Analysis [business_ocpp_requests] Started.
  259. 2022-04-18T19:14:03.690546954Z Connected to TagoIO, Getting analysis information...
  260. 2022-04-18T19:14:03.710875025Z Connected to TagoIO, Getting analysis information...
  261. 2022-04-18T19:14:03.725049134Z Analysis [business_change_card_id_alias] Started.
  262. 2022-04-18T19:14:03.737748174Z Analysis [pay_start_transaction] Started.
  263. 2022-04-18T19:14:04.052721165Z Connected to TagoIO, Getting analysis information...
  264. 2022-04-18T19:14:04.061769174Z Analysis [business_change_availability] Started.
  265. 2022-04-18T19:14:04.235846914Z Connected to TagoIO, Getting analysis information...
  266. 2022-04-18T19:14:04.332259204Z Connected to TagoIO, Getting analysis information...
  267. 2022-04-18T19:14:04.338802064Z Connected to TagoIO, Getting analysis information...
  268. 2022-04-18T19:14:04.352149164Z Analysis [business_load_balancing_mode] Started.
  269. 2022-04-18T19:14:04.475257244Z Connected to TagoIO, Getting analysis information...
  270. 2022-04-18T19:14:04.632516414Z Analysis [bussines_change_max_power_grid] Started.
  271. 2022-04-18T19:14:06.544554694Z Analysis [business_change_rate_list] Started.
  272. 2022-04-18T19:14:06.737319994Z Analysis [business_create_RFID] Started.
  273. 2022-04-18T19:14:14.440063293Z Connected to TagoIO, Getting analysis information...
  274. 2022-04-18T19:14:14.450806253Z Analysis [pay_stop_transaction] Started.
  275. 2022-04-18T19:14:14.769918383Z Connected to TagoIO, Getting analysis information...
  276. 2022-04-18T19:14:14.781317843Z Analysis [business_metervalues_mqtt] Started.