UNA
|
Public Member Functions | |
processing () | |
BxDolCron is parent class for all cron jobs, except the cases when the code is evaluated directly.
periodic/cron.php file is used for cron jobs. It is started every minute and run cron jobs. The file runs jobs at regular intervals, the jobs are listed in sys_cron_jobs
table.
Fields shark_cron_jobs table: id - key for the table name - job name to be executed time - format of entries are five fields of numbers specifying the minute, hour, day of the month, month and day of the week that a task must be executed.
class - class name which will run file - path to class file service_call - serialized service call which will be run
The time numbers can be given as a comma separated list of simple numbers, ranges("2-5" is the same as "2,3,4,5"). A single "*" can be used in a field to indicate all valid numbers in that field, so it translates to "always". If a given time is valid in all five fields then a module function is executed. Here are a few examples that illustrate the possibilities:
Example add new cron job:
sys_cron_jobs
tableMemberships/ACL: Doesn't depend on user's membership.
Alerts: no alerts available
BxDolCron::__construct | ( | ) |
Reimplemented from BxDol.
|
abstract |
Reimplemented in BxMarketCronPruning, and BxRemindersCron.