irc.libera.chat #tryton log beginning Fri Feb 2 12:10:00 AM CET 2024 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:31 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:31 | |
-!- springwurm(~springwur@2a01:76c0:104:c700:448a:12f1:9fd3:60db) has joined #tryton | 06:14 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:06 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 07:06 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 07:26 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:29 | |
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton | 08:31 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 08:35 | |
-!- srgdts(~srgdts@user/srgdts) has joined #tryton | 10:03 | |
mrichez | hi, we are doing some tests to post invoices. I've selected 240 invoices and doing post. We have no worker activated. Process seems very slow: after 2 hours, only 120 invoices are posted. Is it normal ? How to know what takes so much time ? | 10:53 |
---|---|---|
pokoli | mrichez: normally it depends on the number of lines | 12:12 |
cedk | mrichez: post_batch is there to improve | 12:12 |
mrichez | pokoli: 1 or 2 line by invoice and 240 invoices | 12:13 |
mrichez | cedk: ok, i'll test with worker | 12:13 |
pokoli | mrichez: in my expirience posting nearly 20 invoices (with similar number of lines) takes just 1 minute. so 2 hours seems like to much | 12:13 |
mrichez | cedk: i just need to add worker in configuration and launch trytond-worker... so next time, i'll post , worker will manage processing ? | 12:14 |
cedk | mrichez: I guess it is the PDF generation that takes time | 12:14 |
cedk | mrichez: worker is different of post_batch | 12:15 |
mrichez | cedk: how to use post_batch then ? | 12:15 |
cedk | mrichez: post_batch solves the lock contension on the ir.sequence.strict | 12:15 |
pokoli | cedk: but post batch will take exactly the same time but just in the worker | 12:16 |
cedk | mrichez: but if you activate workers, post will delegate the PDF generation to worker and post_batch will delegate the accounting and report to worker | 12:16 |
mrichez | cedk: ok, we will test it | 12:17 |
cedk | mrichez: and post_batch will skip the checks for warnings | 12:17 |
pokoli | well not exactly because it skips some tests, but mostly the same | 12:17 |
mrichez | indeed we have warning about payment in the past | 12:18 |
mrichez | and how using post_batch instead of post ? | 12:18 |
mrichez | is it automatically ? | 12:18 |
cedk | mrichez: no it is there to be used by custom code | 12:28 |
mrichez | cedk: ok thanks | 12:28 |
mrichez | hi, i've configured trytond-worker... but when confirming sales they stay in confirmed state | 15:00 |
mrichez | i just need to add [queue]worker = True in configuration file ? | 15:00 |
mrichez | and launching trytond-worker | 15:01 |
mrichez | sorry, i've to leave, will read your answer later. Thanks. | 15:05 |
cedk | mrichez: processing happens a little bit after so the client refresh before it happens | 15:08 |
cedk | mrichez: or the processing raise an error | 15:08 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:03 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 21:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:36 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 22:36 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!