[REM] chorus on multiprocessing cron, it doesnt really helps
authorAntony Lesuisse <al@openerp.com>
Thu, 10 Oct 2013 23:16:28 +0000 (01:16 +0200)
committerAntony Lesuisse <al@openerp.com>
Thu, 10 Oct 2013 23:16:28 +0000 (01:16 +0200)
bzr revid: al@openerp.com-20131010231628-b81uhmhg14aj85tq

openerp/service/server.py

index cddb0be..80a7155 100644 (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
 #----------------------------------------------------------