Cron Jobs
In each module class, empty methods are generated for implementing cron tasks - that is, these methods are executed automatically at a specific time. Typically, things like periodic sync or cleanup tasks can be put in these methods.
public
void
onCronHourly(
final
String appName,
final
String system )
{
}
public
void
onCronDaily(
final
String appName,
final
String system )
{
}
public
void
onCronWeekly(
final
String appName,
final
String system )
{
}
public
void
onCronMonthly(
final
String appName,
final
String system )
{
}
The methods are executed as follows:
-
onCronHourly: every full hour (e.g. 8pm, 9pm, 10pm,...)
-
onCronDaily: every day at 3am
-
onCronWeekly: every week on Mondays, 3am
-
onCronMontly: on every first day of the month, 3am
* link only available in Enterprise Documentation