From 79b2a0f6c6017d984b15160b8be806ecf7131b3e Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 2 Oct 2012 14:01:11 +0200 Subject: [PATCH] [IMP] Do not start cron master thread if max_cron_threads == 0 bzr revid: fme@openerp.com-20121002120111-nrmetmskns2ompgc --- openerp/service/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openerp/service/__init__.py b/openerp/service/__init__.py index ef0fd757ddd..a1c19914268 100644 --- a/openerp/service/__init__.py +++ b/openerp/service/__init__.py @@ -84,7 +84,8 @@ def start_services(): netrpc_server.init_servers() # Start the main cron thread. - openerp.cron.start_master_thread() + if openerp.conf.max_cron_threads: + openerp.cron.start_master_thread() # Start the top-level servers threads (normally HTTP, HTTPS, and NETRPC). openerp.netsvc.Server.startAll()