Start Pool before starting threads for cron and worker
issue10704 review346881064
This commit is contained in:
1 parent
6c9b04b59f
commit
cdf2592849
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