CQ Scheduler not firing the scheduled job - on server restart | Community
Skip to main content
New Participant
Oct 16, 2015 2:27 AM UTC
Solved

CQ Scheduler not firing the scheduled job - on server restart

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.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

See this article for information on scheduling and AEM:

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

5 replies

Level 2
Nov 10, 2017 4:59 PM UTC

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

Translate
smacdonald2008
Level 10
Oct 31, 2017 10:05 PM UTC

I will update. Thanks for pointing out!!

Translate
VeenaVikraman
New Participant
Oct 31, 2017 8:06 PM UTC

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

Translate
rakesh_kumar1
Level 2
Oct 16, 2015 2:27 AM UTC

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

Thanks,

Rakesh

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

See this article for information on scheduling and AEM:

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

Translate