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
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.
Right Grahame Jordan but you want to force fully stop then you need following step.
- Stop OpenERP Server
- login to postgresql database (with selected database)
- fire following query
"select * from ir_crom;"
- check what you try to edit or create perticular form is it under in ir_crom if yes then get that id and fire following query
- """update ir_cron set active = False where id = (Selected id);"""
(inactive all scheduler)
- Start openerp server and login and do your work.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/17/13, 7:05 AM|
|Seen: 4526 times|
|Last updated: 3/16/15, 8:10 AM|