메소드 |
설명 |
|
cleanOldJobs ( ) : void |
Cleanup/Delete Completed Jobs. |
|
clearDoublettes ( ) : void |
FIXME |
|
clearKey ( ) : void |
Resets worker Identifier |
|
createJob ( string $jobName, array $data = null, array $config = [] ) : Cake\ORM\Entity |
Add a new Job to the Queue. |
|
getLength ( string | null $type = null ) : integer |
Returns the number of items in the queue. |
|
getPendingStats ( ) : array |
Return some statistics about unfinished jobs still in the Database. |
|
getStats ( ) : array |
Return some statistics about finished jobs still in the Database. |
|
getTypes ( ) : array |
Return a list of all job types in the Queue. |
|
initConfig ( ) : void |
|
|
initialize ( array $config ) : void |
initialize Table |
|
key ( ) : string |
Generates a unique Identifier for the current worker thread. |
|
lastRun ( ) : array |
|
|
markJobDone ( Queue\Model\Entity\QueuedJob $job ) : boolean |
Mark a job as Completed, removing it from the queue. |
|
markJobFailed ( Queue\Model\Entity\QueuedJob $job, string | null $failureMessage = null ) : boolean |
Mark a job as Failed, incrementing the failed-counter and Requeueing it. |
|
requestJob ( array $capabilities, string | null $group = null ) : Queue\Model\Entity\QueuedJob | null |
Look for a new job that can be processed with the current abilities and
from the specified group (or any if null). |
|
reset ( ) : boolean |
Reset current jobs |
|
truncate ( ) : void |
truncate() |
|
updateProgress ( integer $id, float $progress ) : boolean |
|
|