Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Scheduler executing but not calling the intended method

By
Ratnadeep
on 11/21/13, 11:41 AM 867 views

Hello all,

I am facing problem with the OpenERP schedulers. The scenario is- I have some function which should be called once every day. I am calling this function through schedulers.

Now the problem I am facing is : the function executed properly for 3 days but on the 4th day it did not. Although the scheduler has advanced its nextcall to the next day. That means the scheduler called for 4th day too but it did not reach to the intended function. I have print statements at the start of my function. So on the terminal I can see if the function started execution or not. But to surprise it did NOT start execution for the 4th day. I have also checked the whole terminal to see if there was some error. There wasn't any.

Few days back I had same kind of problems. At that time I tried upgrading the base module. It did not work. So, I deleted the scheduler and created again and it worked. But this way we can't rely on so called schedulers.

I am helpless here. The scheduler shows it called but the actual function did not call.

Please help with your ideas. Thanks and Regards.

Do you have the 'Number of calls' field set to -1 ? (=no limit on how many times the method is called)

Jaakko Komulainen
on 11/22/13, 8:01 AM

Thanks Jaakko Komulainen . Yes, 'Number of calls' field is set to -1. Here actually the 'nextcall' field is advancing to the next day as it is scheduled to call once a day and the scheduler is still in the active state. That means scheduler is called. Only my method did not call neither it threw any error. Thanks for your reply.

Ratnadeep
on 11/22/13, 9:12 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/21/13, 11:41 AM
Seen: 867 times
Last updated: 3/16/15, 8:10 AM