Property | Type | Description | |
---|---|---|---|
$em | the Doctrine ORM Entity Manager | ||
$failureLogLifetime | how long to keep failed (missed / error) cron job logs | ||
$maxRunningTime | maximum running time of each cron job | ||
$pending | wrapped the Repo function here to implement a (crude) cache feature | ||
$scheduleAhead | how long ahead to schedule cron jobs | ||
$scheduleLifetime | how long before a scheduled job is considered missed | ||
$successLogLifetime | how long to keep successfully completed cron job logs |
Method | Description | |
---|---|---|
cleanLog ( ) : self | delete old cron job logs | |
cleanup ( ) : self | perform various cleanup work | |
getEm ( ) | ||
getFailureLogLifetime ( ) | ||
getMaxRunningtime ( ) | ||
getPending ( ) | ||
getScheduleAhead ( ) | ||
getScheduleLifeTime ( ) | ||
getSuccessLogLifetime ( ) | ||
process ( ) : self | run cron jobs | |
recoverRunning ( ) | ||
register ( $code, $frequency, $callback, array $args = [] ) | wrapper function | |
resetPending ( ) | ||
run ( ) : self | main entry function | |
schedule ( ) : self | schedule cron jobs | |
setEm ( |
||
setFailureLogLifetime ( $failureLogLifetime ) | ||
setMaxRunningTime ( $maxRunningTime ) | ||
setScheduleAhead ( $scheduleAhead ) | ||
setScheduleLifetime ( $scheduleLifetime ) | ||
setSuccessLogLifetime ( $successLogLifetime ) | ||
tryLockJob ( |
try to acquire a lock on a cron job |
public run ( ) : self | ||
return | self |
public tryLockJob ( |
||
$job | ||
return | boolean |
protected EntityManager,Doctrine\ORM $em | ||
return |
protected $failureLogLifetime |
protected $maxRunningTime |
protected $pending |
protected $scheduleLifetime |