Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Title $title, $params=[], $id=0) | |
run () | |
Public Member Functions inherited from SMW\MediaWiki\Job | |
setStore (Store $store) | |
isEnabledJobQueue ( $enableJobQueue=true) | |
pushToJobQueue () | |
getType () | |
getJobCount () | |
hasParameter ( $key) | |
getParameter ( $key, $default=false) | |
setParameter ( $key, $value) | |
insert () | |
lazyPush () | |
setDelay ( $delay) | |
ignoreDuplicates () | |
waitOnCommandLineMode () | |
Public Attributes | |
const | RESTRICTED_DISPATCH_POOL = 'restricted.disp.pool' |
const | JOB_LIST = 'job-list' |
const | CHUNK_SIZE = 500 |
Additional Inherited Members | |
Static Public Member Functions inherited from SMW\MediaWiki\Job | |
static | batchInsert ( $jobs) |
static | newRootJobParams ( $key='', $title='') |
Protected Member Functions inherited from SMW\MediaWiki\Job | |
getJobQueue () | |
Protected Attributes inherited from SMW\MediaWiki\Job | |
$isEnabledJobQueue = true | |
$jobQueue | |
$jobs = [] | |
$store = null | |
Dispatcher to find and create individual UpdateJob instances for a specific subject and its linked entities.
GNU GPL v2+
SMW\MediaWiki\Jobs\UpdateDispatcherJob::__construct | ( | Title | $title, |
$params = [] , |
|||
$id = 0 |
|||
) |
Title | $title | |
array | $params | job parameters |
integer | $id | job id |
SMW\MediaWiki\Jobs\UpdateDispatcherJob::run | ( | ) |
Retrieved a job list (most likely from a secondary dispatch run) and push each list entry into the job queue to spread the work independently from the actual dispatch process.
Using an entity ID to initiate some work (which if send from the DELETE will have no valid ID_TABLE reference by the time this job is run) on some secondary tables.
Create a secondary run by pushing collected jobs into a chunked queue
const SMW\MediaWiki\Jobs\UpdateDispatcherJob::CHUNK_SIZE = 500 |
Size of chunks used when invoking the secondary dispatch run
const SMW\MediaWiki\Jobs\UpdateDispatcherJob::JOB_LIST = 'job-list' |
Parameter for the secondary run to contain a list of update jobs to be inserted at once.
const SMW\MediaWiki\Jobs\UpdateDispatcherJob::RESTRICTED_DISPATCH_POOL = 'restricted.disp.pool' |
Restrict dispatch process to an available pool of data