CQ Scheduler not firing the scheduled job - on server restart | Community
Skip to main content
October 16, 2015
Solved

CQ Scheduler not firing the scheduled job - on server restart

  • October 16, 2015
  • 5 replies
  • 4724 views

Hi All,

Please help me with below issue.

we are using CQ Scheduler to fire a job on specific time but when we restart the server - then the scheduler is not running the job when the time reached.

Details: Example:

We are setting an event today and scheduling remainder emails to be send to the users on 21st March which tomorrow. but if we restart the server today then it losing the scheduled tasks and not firing the emails to users. if we do not restart then it is working fine and triggering emails on specified date and time. we had to go server restart when we have deployments. if any jobs scheduled in future and server restarted then the scheduler is losing the scheduled jobs.  please help me to solve this issue. is there any configuration required on server or any thing required to change in the code.?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this article for information on scheduling and AEM:

http://helpx.adobe.com/experience-manager/using/aem-first-components1.html

5 replies

rakesh_kumar1
Level 2
October 16, 2015

It would be helpful to answer your question if you show your code/expression that schedule the scheduler.

Thanks,

Rakesh

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See this article for information on scheduling and AEM:

http://helpx.adobe.com/experience-manager/using/aem-first-components1.html

VeenaVikraman
Community Advisor
Community Advisor
October 31, 2017

HI smacdonald2008

          Scott, Can we update this Adobe Experience Manager Help | Scheduling Adobe Experience Manager Jobs using Apache Sling

article as the addJob method in the Scheduler API is deprecated now . Scheduler ("The Adobe AEM Quickstart and Web Application.")

     I believe we should be taking the WHITEBOARD PATTERN approach as mentioned in this article. Scheduler | CQ5 AEM Tricks of Trade .

Thanks

Veena

smacdonald2008
Level 10
October 31, 2017

I will update. Thanks for pointing out!!

Level 2
November 10, 2017

Hi smacdonald2008​,

  I am in the process of upgrading the AEM code from 5.6 to 6.3. I have lot of scheduler which is using deprecated methods in schedular. Do you have the sample example for using the scheduler using schedule method? please share with us if you have any

thanks

Pavan