Scheduler Not Running in AEM6.5 | Community
Skip to main content
Level 2
January 8, 2024
Solved

Scheduler Not Running in AEM6.5

  • January 8, 2024
  • 3 replies
  • 1388 views

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.
Best answer by arunpatidar

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

 

3 replies

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

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

 

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

 

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

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.

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 ?

kautuk_sahni
Community Manager
Community Manager
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.

Kautuk Sahni