PHP Class Aoe_Scheduler_Model_ScheduleManager, Aoe_Scheduler

Since: 2014-08-14
Author: Fabrizio Branca
Afficher le fichier Open project: aoepeople/aoe_scheduler

Méthodes publiques

Méthode Description
cleanup ( ) : Mage_Cron_Model_Observer Clean up the history of tasks This override deals with custom states added in Aoe_Scheduler
deleteAll ( ) Delete all schedules
deleteDuplicates ( ) Delete duplicate crons
flushSchedules ( string $jobCode = null ) Flushed all future pending schedules.
generateSchedules ( ) Generate cron schedule.
generateSchedulesForJob ( Aoe_Scheduler_Model_Job $job ) Generate jobs for config information
getMeasuredCronInterval ( ) : array | boolean Create some statistics based on self::CACHE_KEY_SCHEDULER_LASTRUNS
getPendingSchedules ( array $whitelist = [], array $blacklist = [] ) : Mage_Cron_Model_Resource_Schedule_Collection Get pending schedules
getScheduleForAlwaysJob ( $jobCode, $reason = null ) : Aoe_Scheduler_Model_Schedule | false Get job for task marked as always
logRun ( ) Log run
skipMissedSchedules ( ) Mark missed schedule records by changing status

Method Details

cleanup() public méthode

Clean up the history of tasks This override deals with custom states added in Aoe_Scheduler
public cleanup ( ) : Mage_Cron_Model_Observer
Résultat Mage_Cron_Model_Observer

deleteAll() public méthode

Delete all schedules
public deleteAll ( )

deleteDuplicates() public méthode

Delete duplicate crons
public deleteDuplicates ( )

flushSchedules() public méthode

Flushed all future pending schedules.
public flushSchedules ( string $jobCode = null )
$jobCode string

generateSchedules() public méthode

Rewrites the original method to remove duplicates afterwards (that exists because of a bug)
public generateSchedules ( )

generateSchedulesForJob() public méthode

Generate jobs for config information
public generateSchedulesForJob ( Aoe_Scheduler_Model_Job $job )
$job Aoe_Scheduler_Model_Job

getMeasuredCronInterval() public méthode

Create some statistics based on self::CACHE_KEY_SCHEDULER_LASTRUNS
public getMeasuredCronInterval ( ) : array | boolean
Résultat array | boolean

getPendingSchedules() public méthode

Get pending schedules
public getPendingSchedules ( array $whitelist = [], array $blacklist = [] ) : Mage_Cron_Model_Resource_Schedule_Collection
$whitelist array
$blacklist array
Résultat Mage_Cron_Model_Resource_Schedule_Collection

getScheduleForAlwaysJob() public méthode

(Instead of reusing existing one - which results in loosing the history - create a new one every time)
public getScheduleForAlwaysJob ( $jobCode, $reason = null ) : Aoe_Scheduler_Model_Schedule | false
$jobCode
Résultat Aoe_Scheduler_Model_Schedule | false

logRun() public méthode

Log run
public logRun ( )

skipMissedSchedules() public méthode

Mark missed schedule records by changing status
public skipMissedSchedules ( )