[REM] chorus on multiprocessing cron, it doesnt really helps

bzr revid: al@openerp.com-20131010231628-b81uhmhg14aj85tq
This commit is contained in:
Antony Lesuisse
2013-10-11 01:16:28 +02:00
parent 7976d4aa89
commit a3fffe3b15
-5
View File
@@ -793,11 +793,6 @@ class WorkerCron(Worker):
Worker.start(self)
self.multi.socket.close()
# chorus effect: make cron workers do not all start at first database
mct = config['max_cron_threads']
p = float(self.pid % mct) / mct
self.db_index = int(len(self._db_list()) * p)
#----------------------------------------------------------
# start/stop public api
#----------------------------------------------------------