Files
tryton/trytond
Dani Möller aa96c33cbc Rewrite worker with concurrent.futures instead of multiprocessing
Unlike multiprocessing pools, the concurrent library pools will raise an
exception if child processes have died and can't accept further tasks. This
should cause the main worker to stop instead of stalling in an inifinite wait.

Introduce a dummy noop execution in the pool to probe if it is still operative
to mitigate the volume of lost tasks if the next submited execution would raise
a BrokenExecutor exception. This isn't 100% bulletproof because the pool might
still break between the probe and a new task being pulled.

The maxtasksperchild CLI option will only work for Python 3.11 onwards because
former concurrent.futures pools do not support this option.

Closes #11104
2024-02-04 20:32:09 +01:00
..
2023-10-30 18:17:32 +01:00
2022-12-16 14:43:04 +01:00
2022-12-16 14:43:04 +01:00
2022-12-16 14:43:04 +01:00
2023-11-19 17:50:14 +01:00
2023-10-22 19:40:55 +02:00

trytond
=======

The server of Tryton.
Tryton is business software, ideal for companies of any size, easy to use,
complete and 100% Open Source.
It provides modularity, scalability and security.