I have an ir.cron job / schedule that stopped running a few days ago, although its interval is 10 minutes.
So, first I tried to reset the date to now, or 1 minute in the future. But then an error message appears:
Record cannot be modified right now
This cron task is currently being executed and may not be modified, please try again in a few minutes
see: bazaar.launchpad.net/~openerp/openobject-server/7.0/view/head:/openerp/addons/base/ir/ir_cron.py#L262
I understand that the schedule record is locked by FOR UPDATE NOWAIT
.
How would OpenERP remove this lock in the end? And, for now, how to remove the lock now?
EDIT: An answer to the latter is simple: restart server.