Expand my Community achievements bar.

SOLVED

How can I run sling Job manually

Avatar

Level 3

Hi Team,

 

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

 

Any help is highly appreated.

 

Thank you

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/4... 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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/4...