Hi, I have an issue with my flask web app that I'm not able to reproduce locally.
I don't have a database, my data is loaded from a file in a few dictionaries kept in memory. I'm not doing any multithreading myself and to my knowledge neither are my dependencies.
But when I add an entry to my dict in memory, I'm not able to retrieve it back consistently. I've added a few debugging logs: the id() of the dict, the thread id and the len() of the dict.
The result of multiple successive calls:
- The thread id is always the same
- The dict id() is always the same
- The dict len() varies randomly between the old and new value
Any idea of what could cause this?