I am following this tutorial on creating a scheduler: https://kiransg.com/2021/11/07/aem-scheduler-best-practices/
@ObjectClassDefinition(name="A scheduled task", description = "Simple demo for cron-job like task with properties")
@AttributeDefinition(name = "Cron-job expression")
String schedulerExpression() default "*/30 * * * * ?";
@AttributeDefinition(name = "Concurrent task", description = "Whether or not to schedule this task concurrently")
boolean schedulerConcurrent() default false;
@AttributeDefinition(name = "A parameter", description = "Can be configured in /system/console/configMgr")
String myParameter() default "";
@AttributeDefinition(name = "Enabled", description = "True, if scheduler service is enabled", type = AttributeType.BOOLEAN)
public boolean enabled() default true;
}
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?