diff options
| author | Olivier Dony <odo@openerp.com> | 2013-03-20 16:34:30 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-03-20 16:34:30 +0100 |
| commit | 5a3095673f169bb792223942034105ee8980bffe (patch) | |
| tree | 10a2dca484d625d6063605846320a12c70f083d1 /debian | |
| parent | 1b2579f7778ec6037bc7c125a0bef09d01dbd8fb (diff) | |
[FIX] subscription: prevent lockup during cron job execution
Due to the way cron jobs are executed in multi-process
environments, the cron arbiter holds an exclusive lock
on the cron task row in the database.
During the course of the subscription cron jobs execution
they attempt to alter a record that has a FK towards
the cron task row, effectively deadlocking the whole
cron processing thread.
The fix is rather hackish: remove the explicit FK
constraint from the subscription model towards
ir.cron - this prevent PostgreSQL from requesting
an exclusive lock and triggering a deadlock.
This is only a temporary solution, the subscription
module should be rewritten for the next stable release.
bzr revid: odo@openerp.com-20130320153430-bho6ou8b7ziohcb0
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions
