PHP 클래스 Aoe_Scheduler_Model_ScheduleManager, Aoe_Scheduler

부터: 2014-08-14
저자: Fabrizio Branca
파일 보기 프로젝트 열기: aoepeople/aoe_scheduler

공개 메소드들

메소드 설명
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

메소드 상세

cleanup() 공개 메소드

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

deleteAll() 공개 메소드

Delete all schedules
public deleteAll ( )

deleteDuplicates() 공개 메소드

Delete duplicate crons
public deleteDuplicates ( )

flushSchedules() 공개 메소드

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

generateSchedules() 공개 메소드

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

generateSchedulesForJob() 공개 메소드

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

getMeasuredCronInterval() 공개 메소드

Create some statistics based on self::CACHE_KEY_SCHEDULER_LASTRUNS

getPendingSchedules() 공개 메소드

Get pending schedules
public getPendingSchedules ( array $whitelist = [], array $blacklist = [] ) : Mage_Cron_Model_Resource_Schedule_Collection
$whitelist array
$blacklist array
리턴 Mage_Cron_Model_Resource_Schedule_Collection

getScheduleForAlwaysJob() 공개 메소드

(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
리턴 Aoe_Scheduler_Model_Schedule | false

logRun() 공개 메소드

Log run
public logRun ( )

skipMissedSchedules() 공개 메소드

Mark missed schedule records by changing status
public skipMissedSchedules ( )