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

        issue10704
        review346881064
diffstat:

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

diffs (26 lines):

diff -r befd1119ab8d -r 659db305fa55 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 befd1119ab8d -r 659db305fa55 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