Property | Type | Description | |
---|---|---|---|
$findMethods | array | ||
$rateHistory | array |
Property | Type | Description | |
---|---|---|---|
$_key | string | null |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
_findProgress ( string $state, array $query = [], array $results = [] ) : array | Custom find method, as in `find('progress', . |
public cleanOldJobs ( ) : void | ||
return | void |
public getPendingStats ( ) : array | ||
return | array |
public initialize ( array $config ) : void | ||
$config | array | Configuration |
return | void |
public markJobDone ( Queue\Model\Entity\QueuedJob $job ) : boolean | ||
$job | Queue\Model\Entity\QueuedJob | Job |
return | boolean | Success |