In my odoo instance, I added routing generation for product during the procurement generation of MOs. Every routing generation lasts more or less 2 or 3 minutes and it is possible that the scheduler will have to manage even 100 products. I think I could just setup limit_time_cpu and limit_time_real to very large values, but I don't really like this solution (side question: is it possible to disable those limits? maybe a -1 or 0 value?)
I suppose the best solution would be to completely change the procurement scheduler in order to use 1 single worker for each procurement/product.
Do I have to change all the way from schedulers_all wizard generating n threads (basically moving the procurements search into the wizard) or there is a better solution?
Any suggestion?
Thanks