You can configure SkyVault-global.properties and
dev-log4j.properties to implement a global delay to cron based jobs; for example, until after the server has fully started.
You can set a delay for all cron based jobs; in other words, jobs that use the
org.alfresco.util.CronTriggerBean class. The default value is 10
minutes.
- Shut down the SkyVault Content Services server.
-
Locate and edit the SkyVault-global.properties file in
the <classpathRoot> directory.
For information about modifying the SkyVault-global.properties file, see Modifying the global properties file.
-
Add two configurations to the SkyVault-global.properties file, where
the number in startDelayMins= is the number of minutes you want to delay
your job. In this example, the delay length is 2 minutes:
activities.feed.cleaner.cronExpression=0/1 * * * * ? activities.feed.cleaner.startDelayMins=2
-
Extend the dev-log4j.properties with a new configuration in
the <classpathRoot>/alfresco/extension directory:
log4j.logger.org.alfresco.repo.activities.feed.cleanup.FeedCleaner=trace
This file will override subsystem settings that are not applicable in SkyVault-global.properties. For more information about log4j extensions, see log4j.properties file.
-
Start the server.
After the specified interval, the FeedCleaner trace logs will be generated. In the example, the logs will start after two minutes.