Closed Rickkert00 closed 10 months ago
Hi, thanks for your report. Unfortunately there was a bug in the cleanup code and the nested UltraDicts were cleaned up too eagerly. This bug has been fixed in the main branch but the fix was not released yet. I'll do that shortly. Would you be able to try the main branch and see if the issue goes away?
After updating to the main branch the issue has been resolved! Thank you!
Hi @ronny-rentner,
I am trying to use nested UltraDicts to communicate between processes. The information flow is structured as follows:
info = {'data': {'example': 0}
example
key is updated frequentlyultra_dict = UltraDict(recurse=True)
ultra_dict.update(info)
, every x secondsultra_dict.update(info)
fails with the following stacktrace:Because of design limitations it is not possible to have the information flow into
ultra_dict
directly. I expect that I should be able to callultra_dict.update(info)
consecutively, even if the information ininfo
has not changed. There is another process that is reading the information out ofultra_dict
.Is this expected behaviour? If so, how should I update the UltraDict such that information is correctly passed through to the other process?
Code to reproduce the issue:
Python version: 3.8.10 UltraDict version: 0.0.6