On 29 May 16:47, Raimon Esteve wrote: > 2015-05-29 13:28 GMT+02:00 Cédric Krier <[email protected]>: > > On such operational error, trytond retries 5 times per default [1] if it > > is not enough for your setup you should increase it. > > Or maybe you have a too long transaction keeping the lock, in such case > > you must reduce the time of this transaction. > > Yes, it is => A transaction is very longer. For example, try assing > 500 shipments it will be spent some long time (~ 10 o 15 minuts) and > stock.move is locked.
This is crazy. > In this case, increase retries option can't work. Yes if you put a very very high number :-) > I think we could do transaction in blocks (for example, each 10 > shipments) to lock/unlock table and other transaction could do some > task. No this is not the proper design. You must make a request for each shipment with a loop to retry etc. But any way, if you need to assign at once 500 shipments, you clearly don't use the right worflow design. This is something else but I can not help more with knowing the business context. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
