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:
97ab217
)
[IMP] workers cron dont keep cursors
author
Antony Lesuisse
<al@openerp.com>
Sun, 9 Dec 2012 21:22:42 +0000
(22:22 +0100)
committer
Antony Lesuisse
<al@openerp.com>
Sun, 9 Dec 2012 21:22:42 +0000
(22:22 +0100)
need for saas and demo
bzr revid: al@openerp.com-
20121209212242
-s3a91vxg8bixqls7
openerp/service/workers.py
patch
|
blob
|
history
diff --git
a/openerp/service/workers.py
b/openerp/service/workers.py
index
fc6f0ad
..
d65b3f8
100644
(file)
--- a/
openerp/service/workers.py
+++ b/
openerp/service/workers.py
@@
-363,6
+363,9
@@
class WorkerCron(Worker):
acquired = base.ir.ir_cron.ir_cron._acquire_job(db_name)
if not acquired:
break
+ # dont keep cursors in multi database mode
+ if len(db_names) > 1:
+ sql_db.close_db(db_name)
# TODO Each job should be considered as one request instead of each db
self.request_count += 1