From a4bec38362abba2e4504b63da149c43fd3858670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 10 Sep 2021 19:11:45 +0200 Subject: [PATCH] Start Pool before starting threads for cron and worker issue10704 review346881064 (grafted from 659db305fa55228d27a6e1defb205cdf0c3aaef3) --HG-- branch : 6.0 --- bin/trytond-cron | 2 ++ bin/trytond-worker | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/trytond-cron b/bin/trytond-cron index fd58fe85a3..9f777911cd 100755 --- a/bin/trytond-cron +++ b/bin/trytond-cron @@ -18,7 +18,9 @@ config.update_etc(options.configfile) 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 --git a/bin/trytond-worker b/bin/trytond-worker index 968d109c9d..92ff76555f 100755 --- a/bin/trytond-worker +++ b/bin/trytond-worker @@ -18,7 +18,9 @@ config.update_etc(options.configfile) 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)