Documentation

Mage_Cron_Model_Observer
in package

Maho

Tags
copyright

Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)

copyright

Copyright (c) 2016-2024 The OpenMage Contributors (https://openmage.org)

license

https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

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
$this

generate()

Generate cron schedule

public generate() : $this
Return values
$this

_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

_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
Return values
$this|void

        
On this page

Search results