Hi, I'm experiencing some inconsistency when working with http.Controller in a multi-worker environment.
Here's a very simplified controller to illustrate the problem:
class Test(http.Controller):
def __init__(self):
self.testing = {}
@http.route('/test/', type='json', auth='user', website=True, methods=['POST'])
def testing(self, **kw):
print(self.testing)
self.testing[kw['id']] = kw['value']
The problem is that `self.testing` seem to contain different values at random times if the testing method is called relatively quickly. Seems like the workers are not syncing the value of self.testing fast enough or something.
Any insights into how Odoo workers sync a Controllers cached properties?
Anybody had any similar issues?