MediaWiki
REL1_20
|
Maintenance script that picks a database that has pending jobs. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
checkJob ($type, $dbName) | |
Check if the specified database has a job of the specified type in it. | |
execute () | |
Do the actual work. | |
Private Member Functions | |
getPendingDbs () | |
Get all databases that have a pending job. |
Maintenance script that picks a database that has pending jobs.
Definition at line 32 of file nextJobDB.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 33 of file nextJobDB.php.
References Maintenance\addOption().
nextJobDB::checkJob | ( | $ | type, |
$ | dbName | ||
) |
Check if the specified database has a job of the specified type in it.
The type may be false to indicate "all".
$type | string |
$dbName | string |
Definition at line 99 of file nextJobDB.php.
References $lb, Job\defaultQueueConditions(), and wfGetLB().
Referenced by execute().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 39 of file nextJobDB.php.
References $wgMemc, checkJob(), Maintenance\getOption(), getPendingDbs(), and Maintenance\output().
nextJobDB::getPendingDbs | ( | ) | [private] |
Get all databases that have a pending job.
Definition at line 118 of file nextJobDB.php.
References $lb, $res, wfGetDB(), wfGetLB(), and wfSplitWikiID().
Referenced by execute().