UESPWiki:JobQueue

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

JobQueue is a very small extension which adds the "Job queue" statistic, which was removed in MediaWiki 1.17, back to Special:Statistics.

Parameters[edit]

$wgJobQueuePrecisionCutoff (default: 20)

Like the original job queue and the one in api.php, the extension will first get an estimate of the amount of jobs remaining. Unlike those job queues, however, the extension will requery the job queue at small values to get an exact figure, rather than an estimate. This circumvents the problem of the job queue always appearing to have a small number of jobs "stuck" in it when, in fact, there are none. The $wgJobQueuePrecisionCutoff variable controls the cutoff point below which an exact figure will be determined.

It's conceivable for the job queue to jump significantly between the initial estimate and the accurate query. The chance of this is extremely small, and the impact on a wiki like UESP is negligible in any event. It is of much more concern on very large scale wikis like Wikipedia. To eliminate requerying altogether, set $wgJobQueuePrecisionCutoff to 0.

Similarly, to always use accurate querying, $wgJobQueuePrecisionCutoff could be set to a higher value than the job queue is ever likely to get to, but this is a less-than-optimal solution. If accurate values are preferred, a small amount of additional coding could be added to skip the initial estimate.