Alfresco runs a number of scheduled jobs that assist in the maintenance of a production environment.
These jobs are defined in the scheduled-jobs-context.xml file.
Scheduled job | Description |
---|---|
contentStoreCleanerTrigger | Launches the contentStoreCleaner bean, which identifies, and deletes or purges orphaned content from the content store while the system is running. Content is said to be orphaned when all references to a content binary have been removed from the metadata. By default, this job is triggered at 4:00 am each day. In a clustered environment, this job could be enabled on a headless (non-public) node only, which will improve efficiency. |
nodeServiceCleanupTrigger | Performs cleanup operations on DM node data, including old deleted nodes and old transactions. In a clustered environment, this job could be enabled on a headless (non-public) node only, which will improve efficiency. |
tempFileCleanerTrigger | Cleans up all Alfresco temporary files that are older than the given number of hours. Subdirectories are also emptied and all directories below the primary temporary subdirectory are removed. The job data must include the protectHours property, which is the number of hours to protect a temporary file from deletion since its last modification. The system.tempFileCleaner.maxFilesToDelete parameter can be used to configure a maximum number of files that the TempFileCleanerTrigger can delete when it is triggered, the default value is null and it’s data type is Long. The system.tempFileCleaner.maxTimeToRun parameter can be used to determine a maximum duration for the TempFileCleanerTrigger to run after it starts, the default value is null and its data type is Duration. |
deadClusterNodesCleanupJobDetail | Enterprise only feature. Schedules the removal of dead cluster nodes from the database so that live nodes do not spend time trying to reconnect with dead nodes. By default, this job deletes nodes which are inactive for more than 24 hours. This period is configurable, by using the property alfresco.cluster.deadNodes.cleaner.inactivePeriodMilliseconds which is available inside the repository.properties file. Currently this job is triggered at 3:00 am on Saturday of every week. You can customize the schedule using the cron expression property alfresco.cluster.deadNodes.cleaner.cronExpression which is also available in the repository.properties file. |