Revert 4580
bzr revid: nicolas.vanhoren@openerp.com-20130215123324-m10141rj595x30pl
This commit is contained in:
parent
b5209cbf56
commit
b30307da32
|
@ -141,8 +141,7 @@ class Multicorn(object):
|
|||
def process_spawn(self):
|
||||
while len(self.workers_http) < self.population:
|
||||
self.worker_spawn(WorkerHTTP, self.workers_http)
|
||||
while len(self.workers_cron) < config['max_cron_threads'] \
|
||||
and config['db_name']:
|
||||
while len(self.workers_cron) < config['max_cron_threads']:
|
||||
self.worker_spawn(WorkerCron, self.workers_cron)
|
||||
while len(self.workers_longpolling) < 1:
|
||||
self.worker_spawn(WorkerLongPolling, self.workers_longpolling)
|
||||
|
@ -400,7 +399,7 @@ class WorkerCron(Worker):
|
|||
if config['db_name']:
|
||||
db_names = config['db_name'].split(',')
|
||||
else:
|
||||
db_names = []
|
||||
db_names = openerp.service.db.exp_list(True)
|
||||
for db_name in db_names:
|
||||
if rpc_request_flag:
|
||||
start_time = time.time()
|
||||
|
|
Loading…
Reference in New Issue