Migrate Scheduler from AEM 6.5 to AEM Cloud
Dear All,
I have one scheduler called asset test in my AEM6.5SP22 environment.
This scheduler runs at 8:30 AM, on every Monday. The scheduler scans through "/content/dam/asset zone" for all newly created assets, checks for missing metadata and sends notification email to the author who created the asset as shown below
********************** ASSET SCHEDULER IN AEM 6.5 ********************
@Designate(ocd = AssetTest.Config.class)
@Component(service = Runnable.class)
public class AssetTest implements Runnable {
@ObjectClassDefinition(name = "Test Asset Creation Notifier", description = "Cron-job with SQL statement to send emails to users who uploaded assets. Expensive Query not to be run during business hours.")
public static @interface Config {
@AttributeDefinition(name = "Cron-job expression", description = "Cron-job task scheduled to run every monday at 8:30 AM")
String scheduler_expression() default "0 30 8 ? * MON *";
@AttributeDefinition(name = "Concurrent task", description = "Whether or not to schedule this task concurrently")
boolean scheduler_concurrent() default false;
}
Now I want to migrate this scheduler to AEM Cloud. So do I need to update the code "or" I can migrate as it is ?
