Configuring Asynchronous Job Processing Options
There are several options around asynchronous jobs that can be configured. The following examples show how this can be done using the configuration manager on a local development system.
Purge Completed Jobs
AEM runs a purge job every day at 01:00 to delete completed asynchronous jobs that are more than a day old.
You can modify the schedule for the purge job and the duration for which details of completed jobs are retained before they are deleted. You can also configure the maximum number of completed jobs for which details are retained at any point of time.
-
Log in to the AEM SDK Quickstart Jar’s AEM Web console at
https://<host>:<port>/system/console
as the admin user. -
Navigate to OSGi > Configuration
-
Open the Adobe Granite Async Jobs Purge Scheduled Job job.
-
Specify:
- The threshold number of days after which completed jobs are deleted.
- The maximum number of jobs for which details are retained in history.
- The cron expression for when the purge should run.
-
Save the changes.
Configure Asynchronous Asset Delete Operations
If the number of assets or folders to be deleted exceeds the threshold number, the delete operation is performed asynchronously.
-
Log in to the AEM SDK Quickstart Jar’s AEM Web console at
https://<host>:<port>/system/console
as the admin user. -
Navigate to OSGi > Configuration
-
From the web console, open the Async Process Default Queue Configuration.
-
In the Threshold number of assets box, specify the threshold number of assets/folders for asynchronous processing of delete operations.
-
Check the option Enable email notification to receive email notifications for this job status. for example, success, failed.
-
Save the changes.
Configure Asynchronous Asset Move Operations
If the number of assets/folders or references to be moved exceeds the threshold number, the move operation is performed asynchronously.
-
Log in to the AEM SDK Quickstart Jar’s AEM Web console at
https://<host>:<port>/system/console
as the admin user. -
Navigate to OSGi > Configuration
-
From the web console, open the Async Move Operation Job Processing Configuration.
-
In the Threshold number of assets/references box, specify the threshold number of assets/folders or references for asynchronous processing of move operations.
-
Check the option Enable email notification to receive email notifications for this job status. For example, success, failed.
-
Save the changes.