How can I run sling Job manually | Community
Skip to main content
Level 2
August 24, 2023
Solved

How can I run sling Job manually

  • August 24, 2023
  • 2 replies
  • 1358 views

Hi Team,

 

Did anyone run the sling job manually instead of schedular helping to trigger the job. ?

 

Any help is highly appreated.

 

Thank you

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 Mahedi_Sabuj

Hi @sumit30908642ioye,

There is no OOTB option for manually running a Sling Job, but you can accomplish this by implementing a custom workflow step.

Begin by creating a shared utility class and service. Then, invoke these utility class and services within the scheduler method. To facilitate manual runs, design a custom workflow step (or servlet) that incorporates the same utility class and services.

This setup successfully fulfills both needs: scheduled automatic execution and the ability to initiate the process manually.

Similar discussion is available here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-scheduler-aem/td-p/422368 

2 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
August 24, 2023

Hi @sumit30908642ioye,

There is no OOTB option for manually running a Sling Job, but you can accomplish this by implementing a custom workflow step.

Begin by creating a shared utility class and service. Then, invoke these utility class and services within the scheduler method. To facilitate manual runs, design a custom workflow step (or servlet) that incorporates the same utility class and services.

This setup successfully fulfills both needs: scheduled automatic execution and the ability to initiate the process manually.

Similar discussion is available here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-scheduler-aem/td-p/422368 

Mahedi Sabuj
Level 2
August 25, 2023

Thank you @mahedi_sabuj 

Harwinder-singh
Community Advisor
Community Advisor
August 24, 2023
Level 2
August 25, 2023

Thank you @harwinder-singh