MediaWiki
master
|
Maintenance script that picks a database that has pending jobs. More...
Public Member Functions | |
__construct () | |
checkJob ($type, $dbName) | |
Check if the specified database has a job of the specified type in it. | |
execute () | |
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.
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 109 of file nextJobDB.php.
References as, and JobQueueGroup\singleton().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 39 of file nextJobDB.php.
References $wgMemc, array(), as, checkJob(), Maintenance\getOption(), getPendingDbs(), global, and Maintenance\output().
nextJobDB::getPendingDbs | ( | ) | [private] |
Get all databases that have a pending job.
Definition at line 127 of file nextJobDB.php.
References array(), as, global, and JobQueueGroup\singleton().
Referenced by execute().