Same task executed several times at same time when cron is runnning in multi thread
Bug #1274997 reported by
Laurent Mignon (Acsone)
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
Unassigned | ||
OpenERP Community Backports (Server) |
Fix Released
|
Undecided
|
Laurent Mignon (Acsone) | ||
Server Environment And Tools |
New
|
Undecided
|
Unassigned |
Bug Description
When the cron is configured to run in multi thread (max_cron_threads > 1), Some times, the same task can be executed several times et same time.
Related branches
lp:~acsone-openerp/openobject-server/7.0-bug-1274997-cron
Ready for review
for merging
into
lp:openobject-server/7.0
- Laurent Mignon (Acsone) (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 26 lines (+10/-1)1 file modifiedopenerp/addons/base/ir/ir_cron.py (+10/-1)
lp:~acsone-openerp/ocb-server/7.0-bug-1274997-cron
- Guewen Baconnier @ Camptocamp: Approve (code review)
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
- Holger Brunn (Therp): Approve (code review)
-
Diff: 26 lines (+10/-1)1 file modifiedopenerp/addons/base/ir/ir_cron.py (+10/-1)
Changed in ocb-server: | |
assignee: | nobody → Laurent Mignon (Acsone) (lmi) |
Changed in ocb-server: | |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | New → Confirmed |
Changed in ocb-server: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Are you sure ?
SELECT * FROM ir_cron WHERE id=%s FOR UPDATE NOWAIT
raises an exception if an other worker or thread has already a lock on the job.