Re: Python statefun - Context update

2021-09-21 Thread Nicolaus Weidner
Hi Jérémy, objects are serialized when you store them in state. So when you retrieve run_state from state, it is deserialized and you have a fresh instance. Calling method_caller() then modifies this instance, but *not *the serialized version stored in state. In the second attempt you described, y

Python statefun - Context update

2021-09-20 Thread Jérémy Albrecht
Hi all ! I am currently developing an environment that uses Flink Stateful functions in Python. The architecture is complex but here are the main points that needs to be understood to frame the problem I am facing. * functions.py contains several methods, one of them is handling protobuf messag