changeset 46c577b70e20 in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=46c577b70e20
description:
        Start Pool before starting threads for cron and worker

        issue10704
        review346881064
        (grafted from 659db305fa55228d27a6e1defb205cdf0c3aaef3)
diffstat:

 bin/trytond-cron   |  2 ++
 bin/trytond-worker |  2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 5fe8afce571d -r 46c577b70e20 bin/trytond-cron
--- a/bin/trytond-cron  Fri Sep 10 19:08:38 2021 +0200
+++ b/bin/trytond-cron  Fri Sep 10 19:11:45 2021 +0200
@@ -18,7 +18,9 @@
 commandline.config_log(options)
 
 # Import after application is configured
+from trytond.pool import Pool
 import trytond.cron as cron
 
 with commandline.pidfile(options):
+    Pool.start()
     cron.run(options)
diff -r 5fe8afce571d -r 46c577b70e20 bin/trytond-worker
--- a/bin/trytond-worker        Fri Sep 10 19:08:38 2021 +0200
+++ b/bin/trytond-worker        Fri Sep 10 19:11:45 2021 +0200
@@ -18,7 +18,9 @@
 commandline.config_log(options)
 
 # Import after application is configured
+from trytond.pool import Pool
 import trytond.worker as worker
 
 with commandline.pidfile(options):
+    Pool.start()
     worker.work(options)

Reply via email to