I am following this tutorial on creating a scheduler: https://kiransg.com/2021/11/07/aem-scheduler-best-practices/
In it, it mentioned the interface should have an enabled() field as boolean so the scheduler can be turned off. I was wondering how to turn it off the scheduler? Is there a way to turn it off through the aem portal?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @aemUser2345 ,
To turn of the scheduler manually, try following the steps below :
1. Got to /system/console/configMgr.
2. Search for your scheduler(from above example it should be "A scheduled task").
3. Open the config and uncheck the field labelled "enabled".
4. That should turn off the scheduler.
I'm attaching a screenshot of a sample scheduler with the enabled field which should be turned off.
Hi @aemUser2345 ,
To turn of the scheduler manually, try following the steps below :
1. Got to /system/console/configMgr.
2. Search for your scheduler(from above example it should be "A scheduled task").
3. Open the config and uncheck the field labelled "enabled".
4. That should turn off the scheduler.
I'm attaching a screenshot of a sample scheduler with the enabled field which should be turned off.
Thanks for the quick reply @VijayChintapalli. Do I need to have this "SimpleScheduledTaskConfig" interface inherit to the scheduler in order for it to show up on this endpoint: /system/console/configMgr?
Views
Replies
Total Likes
You would need @ObjectClassDefinition annotation for that to show up under /system/console/configMgr.
Thanks,
Vijay
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies