projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7976d4a
)
[REM] chorus on multiprocessing cron, it doesnt really helps
author
Antony Lesuisse
<al@openerp.com>
Thu, 10 Oct 2013 23:16:28 +0000
(
01:16
+0200)
committer
Antony 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
patch
|
blob
|
history
diff --git
a/openerp/service/server.py
b/openerp/service/server.py
index
cddb0be
..
80a7155
100644
(file)
--- a/
openerp/service/server.py
+++ b/
openerp/service/server.py
@@
-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
#----------------------------------------------------------