Skip to main content
Level 2
January 8, 2024
Solved

Scheduler Not Running in AEM6.5

Hi All,

We have created Scheduler called CDMImportScheduler in AEM6.5.CDMImportScheduler is not getting triggered now. We are seeing in CDMImportScheduler is running very long in "Scheduler Health Check ". 

 

After doing soft restart from webconsole i am not seeing CDMImportScheduler in Health checks. Health check is normal but scheduler is not still running. How to handle and resolve this issue. 

 

Regards,

Gana

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
January 8, 2024

Hi @ganag 
The issue could be due to the long running scheduler.

 

I would suggest to move your logic from scheduler to a sling job

 

Arun Patidar

7 replies

arunpatidar
Community Advisor
Community Advisor
January 8, 2024
Arun Patidar
GanaGAuthor
Level 2
January 8, 2024

Pls find the code snippet above. It requires soft or hard restart every day to execute the scheduler

 

Translate
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
January 8, 2024

Hi @ganag 
The issue could be due to the long running scheduler.

 

I would suggest to move your logic from scheduler to a sling job

 

Translate
Arun Patidar
Level 2
January 8, 2024

Hi @ganag 

This seems to be an issue in the business logic of your scheduler. Could you just remove all the logic and just test in your local with some logger and check if the scheduler is working? 

Regards,
Arpit Varshney

Translate
GanaGAuthor
Level 2
January 8, 2024

After executing scheduler for 30 to 40 times a day, scheduler stops to execute and requires soft or hard restart.

Translate
Jagadeesh_Prakash
Community Advisor
Community Advisor
January 8, 2024

@ganag  Can you explain a bit about your businesses use case on why need to execute your scheduler for 30 to 40 times a day ?

Translate
kautuk_sahni
Level 9
January 10, 2024

@ganag  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni