diff options
| author | Josse Colpaert <jco@odoo.com> | 2017-12-12 10:55:18 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2017-12-12 15:20:57 +0100 |
| commit | b0acb42f0ba18b8cf50377baf5509880d480a499 (patch) | |
| tree | a4b06d6d9287fcc7a0981bda587d61cb07feb283 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 219c93252fd3accfd168051297970e7d04c80d0c (diff) | |
[FIX] stock: avoid infinite or longer than necessary loops
In some cases the MRP scheduler can remain blocked on an infinite loop
consuming a lot of CPU. The reason comes from the loop 'Check done
procurements'
If a new procument is created from another process (such like MTO
orders) during this loop, the process never ends.
The only way to reproduce is in debug mode:
1. Put a breakpoint on line 'Check done procurements'
2. Launch the MRP scheduler manually and stay paused on the breakpoint
3. In parrallel, create and confirm a sale order with a MTO route, this
will trigger the creation of a new procurement order in state
'Running'
4. Continue debugging step by step the scheduler and you will notice
that the loop never ends.
Closes #21565
opw-787651
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
