Mage_Cron_Model_Observer
in package
Maho
Tags
Table of Contents
Constants
- CACHE_KEY_LAST_HISTORY_CLEANUP_AT = 'cron_last_history_cleanup_at'
- CACHE_KEY_LAST_SCHEDULE_GENERATE_AT = 'cron_last_schedule_generate_at'
- REGEX_RUN_MODEL = '#^([a-z0-9_]+/[a-z0-9_]+)::([a-z0-9_]+)$#i'
- XML_PATH_HISTORY_CLEANUP_EVERY = 'system/cron/history_cleanup_every'
- XML_PATH_HISTORY_FAILURE = 'system/cron/history_failure_lifetime'
- XML_PATH_HISTORY_SUCCESS = 'system/cron/history_success_lifetime'
- XML_PATH_SCHEDULE_AHEAD_FOR = 'system/cron/schedule_ahead_for'
- XML_PATH_SCHEDULE_GENERATE_EVERY = 'system/cron/schedule_generate_every'
- XML_PATH_SCHEDULE_LIFETIME = 'system/cron/schedule_lifetime'
Properties
- $_pendingSchedules : mixed
Methods
- cleanup() : $this
- Clean up the history of tasks
- dispatch() : mixed
- Process cron queue Generate tasks schedule Cleanup tasks schedule
- dispatchAlways() : mixed
- Process cron queue for tasks marked as always
- generate() : $this
- Generate cron schedule
- getPendingSchedules() : Mage_Cron_Model_Resource_Schedule_Collection
- _generateJobs() : $this
- Generate jobs for config information
- _getAlwaysJobSchedule() : Mage_Cron_Model_Schedule
- Get job for task marked as always
- _processAlwaysTask() : $this|void
- Processing cron task which is marked as always
- _processJob() : $this|void
- Process cron task
Constants
CACHE_KEY_LAST_HISTORY_CLEANUP_AT
public
mixed
CACHE_KEY_LAST_HISTORY_CLEANUP_AT
= 'cron_last_history_cleanup_at'
CACHE_KEY_LAST_SCHEDULE_GENERATE_AT
public
mixed
CACHE_KEY_LAST_SCHEDULE_GENERATE_AT
= 'cron_last_schedule_generate_at'
REGEX_RUN_MODEL
public
mixed
REGEX_RUN_MODEL
= '#^([a-z0-9_]+/[a-z0-9_]+)::([a-z0-9_]+)$#i'
XML_PATH_HISTORY_CLEANUP_EVERY
public
mixed
XML_PATH_HISTORY_CLEANUP_EVERY
= 'system/cron/history_cleanup_every'
XML_PATH_HISTORY_FAILURE
public
mixed
XML_PATH_HISTORY_FAILURE
= 'system/cron/history_failure_lifetime'
XML_PATH_HISTORY_SUCCESS
public
mixed
XML_PATH_HISTORY_SUCCESS
= 'system/cron/history_success_lifetime'
XML_PATH_SCHEDULE_AHEAD_FOR
public
mixed
XML_PATH_SCHEDULE_AHEAD_FOR
= 'system/cron/schedule_ahead_for'
XML_PATH_SCHEDULE_GENERATE_EVERY
public
mixed
XML_PATH_SCHEDULE_GENERATE_EVERY
= 'system/cron/schedule_generate_every'
XML_PATH_SCHEDULE_LIFETIME
public
mixed
XML_PATH_SCHEDULE_LIFETIME
= 'system/cron/schedule_lifetime'
Properties
$_pendingSchedules
protected
mixed
$_pendingSchedules
Methods
cleanup()
Clean up the history of tasks
public
cleanup() : $this
Return values
$thisdispatch()
Process cron queue Generate tasks schedule Cleanup tasks schedule
public
dispatch(Varien_Event_Observer $observer) : mixed
Parameters
- $observer : Varien_Event_Observer
dispatchAlways()
Process cron queue for tasks marked as always
public
dispatchAlways(Varien_Event_Observer $observer) : mixed
Parameters
- $observer : Varien_Event_Observer
generate()
Generate cron schedule
public
generate() : $this
Return values
$thisgetPendingSchedules()
public
getPendingSchedules() : Mage_Cron_Model_Resource_Schedule_Collection
Return values
Mage_Cron_Model_Resource_Schedule_Collection_generateJobs()
Generate jobs for config information
protected
_generateJobs(SimpleXMLElement $jobs, array<string|int, mixed> $exists) : $this
Parameters
- $jobs : SimpleXMLElement
- $exists : array<string|int, mixed>
Return values
$this_getAlwaysJobSchedule()
Get job for task marked as always
protected
_getAlwaysJobSchedule(string $jobCode) : Mage_Cron_Model_Schedule
Parameters
- $jobCode : string
Return values
Mage_Cron_Model_Schedule_processAlwaysTask()
Processing cron task which is marked as always
protected
_processAlwaysTask(string $jobCode, SimpleXMLElement $jobConfig) : $this|void
Parameters
- $jobCode : string
- $jobConfig : SimpleXMLElement
Return values
$this|void_processJob()
Process cron task
protected
_processJob(Mage_Cron_Model_Schedule $schedule, SimpleXMLElement $jobConfig[, bool $isAlways = false ]) : $this|void
Parameters
- $schedule : Mage_Cron_Model_Schedule
- $jobConfig : SimpleXMLElement
- $isAlways : bool = false