コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Turn Off AEM Scheduler Manually

Avatar

Level 3

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")
public @interface SimpleScheduledTaskConfig {
 
    @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?

 

1 受け入れられたソリューション

Avatar

正解者
Employee

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.


元の投稿で解決策を見る

3 返信

Avatar

正解者
Employee

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.


Avatar

Level 3

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?

Avatar

Employee

You would need @ObjectClassDefinition annotation for that to show up under /system/console/configMgr.

 

Thanks,

Vijay