Odoo Help


scheduler is not getting called ?

on 11/29/13, 3:36 AM 1,730 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.

Hello Vaibhav, Its not possible that scheduler call only three time and stopped at 4th execution. it will run based on your next execution time check it twice. and you method might be called but because of some condition in your method that code would not be execute. check it twice.

Anil R. Kesariya
on 11/29/13, 5:36 AM

Thanks @Anil Kesariya. Hey let me tell you that I am done with all this testing. In my method before going for any further conditions and loops I am printing a line saying "method has started". But for our surprise, on the 4th day of call it did not print anything that means it did not start execution. Let me also tell you, the same function got called on the 6th day and was correct.

on 12/3/13, 2:32 AM

Hello @vaibhav ! so as per your experiment you saying that the scheduler is not called on 4th and 5th execution and from 6th its working fine ? isn't it ?

Anil R. Kesariya
on 12/3/13, 3:12 AM

Thank you. Appreciate your efforts. No, there isn't any specific pattern for this execution or non execution of my functions. Actually we have 4 methods to be executed daily each at 2pm, 3pm, 4pm and 5pm respectively kept with the same function and same scheduler working for last 2 weeks. Someday all gets executed, someday few and some day none of the methods executes without any errors And these schedulers are independent of each other.

on 12/3/13, 3:38 AM

In the beta state of project, I have tested the same schedulers and methods with 1 minute gap. It executed properly without any miss.

on 12/3/13, 3:41 AM

Yes @vaibhav I have tested too with min. the scheduler works well. its interesting why the scheduler break after 4th execution if interval is day. I will try to solve this issue.

Anil R. Kesariya
on 12/3/13, 3:59 AM

Thanks @ Anil. It will be a great help for me. let me know if you needs any help ?

on 12/3/13, 4:29 AM

Hello @Vaibhav have you find any solution regarding why scheduler was not continuing after 4th execution. what was the issue?

Anil R. Kesariya
on 1/7/14, 7:54 AM

Hi @Anil.... No, We are still facing the unreal execution of scheduler ....

on 1/8/14, 6:05 AM

Hi Team, I am also facing the same issue. I scheduled a scheduler at 3.30 AM by every day. But it's now calling my method. But the execution time only changing properly by every day in the schedule screen. My details are below, OpenEPR V 7.0 Ubuntu 12.04 server Time is IST Kindly help me to solve this issue. Thanks

on 11/22/14, 12:27 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/29/13, 3:36 AM
Seen: 1730 times
Last updated: 3/16/15, 8:10 AM