Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
973c900e by Nicolas Évrard at 2024-12-17T15:14:04+01:00
Reset the pool instances only on the pool initialization

In a scenario where cache_timeout is set to zero, concurrent updates to the
pool might result in an empty pool dictionary because the process making the
update lose its reference to the updated pool thus replacing it with an empty
dictionary on the following instantiation of Pool.

Closes #13763
- - - - -
37c4d5dc by Nicolas Évrard at 2024-12-17T15:16:51+01:00
Remove a useless call to Cache.refresh_pool

Since Pool.init is called with a non empty update, it will make a call to
Cache.refresh_pool at the end of its call to load_modules
- - - - -
c1452c42 by Nicolas Évrard at 2025-02-14T17:16:55+01:00
Add process local objects ala threading.local
- - - - -
93c8ef75 by Nicolas Évrard at 2025-01-08T23:20:32+01:00
Use process-local data structure to store process related data
- - - - -
11dcf151 by Nicolas Évrard at 2024-12-18T17:08:26+01:00
Do not refresh the pool when the notification comes from the same process
- - - - -


8 changed files:

- + trytond/doc/ref/tools/multiprocessing.rst
- + trytond/trytond/tools/multiprocessing.py
- trytond/doc/ref/tools/index.rst
- trytond/trytond/cache.py
- trytond/trytond/ir/module.py
- trytond/trytond/pool.py
- trytond/trytond/tests/test_cache.py
- trytond/trytond/tests/test_tools.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/5719977cd18ed02fc485a0bc8be4abc6b4aec6b3...11dcf1517c99d1936cb2f6531cccd0b51dd372dd

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/5719977cd18ed02fc485a0bc8be4abc6b4aec6b3...11dcf1517c99d1936cb2f6531cccd0b51dd372dd
You're receiving this email because of your account on foss.heptapod.net.

Reply via email to