Start Pool before starting threads for cron and worker
issue10704 review346881064 (grafted from 659db305fa55228d27a6e1defb205cdf0c3aaef3) --HG-- branch : 6.0
This commit is contained in:
1 parent
1ad8a88e3d
commit
a4bec38362
2 files changed
+4
No files matched your search
@@ -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)
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user