modifying a cron from client make it run concurrently multiple times

Bug #516962 reported by Xavier ALT
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

  affects openobject-server

Versions affected:
- OpenObject Server 5.0 (stable) & Trunk

Steps to reproduce the problem:

0. Launch server with --log-level=debug
1. From client (web or gtk), go to:
       Administration > Configuration > Scheduler > Scheduler Actions
2. Select a scheduler and open it in form view
3. Modify something (ex: priority) and save it.
4. On next scheduled run, if you will see in server log that all cron
run twice.

    From there, cron from that database with run twice each time. The
object ir.cron (base module) re-launch the _poolJobs on each
create/write/unlink call, but doesn't cancel already running scheduler
jobs on that DB, that make the problem appear.

See patch attached which fixed the problem for me :)

--
Xavier ALT
AJM Technologies S.A.
22, rue Goethe / L-1637 Luxembourg

Related branches

Revision history for this message
Xavier ALT (dex-phx) wrote :
Changed in openobject-server:
status: New → Confirmed
status: Confirmed → Fix Released
milestone: none → 5.0.7
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Fixed with your patch.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.