modifying a cron from client make it run concurrently multiple times
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:
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
Changed in openobject-server: | |
status: | New → Confirmed |
status: | Confirmed → Fix Released |
milestone: | none → 5.0.7 |
Fixed with your patch.
Thanks