Hi,
Currently there is a weird behavior if new modules are installed when
running multiple instances of trytond (as separate process). The problem
is that only one process has the updated pool definition and the other
process will fail with a KeyError when try to get the new created models.
I think this can be solved like we sync the cache resets between instances:
1. Store on the database the pool version.
2. Each time the pool is updated, a new version is saved on the database.
3. Before staring a request that requires the pool, fetch the version
from database and check if it matches with the current pool version
(stored in memory). If it does not match, reload the pool before
processing the request.
This has the drawback that adds one additional query *per request*.
Thoughts?
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
You received this message because you are subscribed to the Google Groups
"tryton-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton-dev/4746ea51-d549-1ef0-61c9-ec7ae9ad513d%40koolpi.com.