This page is a translated version of the page Manual:$wgJobRunRate and the translation is 10% complete.
Other languages:
Deutsch • ‎English • ‎dansk • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎中文 • ‎日本語 • ‎한국어
Tâches: $wgJobRunRate
Number of jobs to perform per request.
Introduit dans la version :1.6.0 (r13088)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(number >= 0)
Valeur par défaut :1


Number of jobs to perform per request. Peut être entre 0 et 1 auquel cas les tâches sont réalisées ou pas selon la valeur de cette probabilité. Si la valeur est 0 aucune tâche ne sera réalisée lors des requêtes Apache ordinaires. In this case, maintenance/runJobs.php should be run periodically.


The job queue is designed to hold many short tasks. By default, each time a request runs, one job is taken from the job queue and executed. If the performance burden of this is too great, you can reduce $wgJobRunRate by putting something like this in your LocalSettings.php :

$wgJobRunRate = 0.01;

This will cause one item in the job queue to run on average every 100 page views. It is important to understand that this means that on every page view the probability of running a queued item is 1 in 100. This means that (in theory at least) you could still end up with one job being run every page impression, or (at the other end of the scale) no jobs being run at all. However, in practice, providing you have enough traffic to make a meaningful sample size, it should be about 1 per 100 requests.

In some versions of mediawiki, you can view the number of jobs at Special:Statistics. However, this number is a rough estimate, and thus misleading, so it was removed in 1.17 (r65059).

In later versions, you can still view it by calling the API:

The job queue is located in MediaWiki.php , function triggerJobs() (doJobs() before 1.23).

See also