Manual talk:$wgJobRunRate/Archive 1

Job Queue Length
Just thought would put a note here for future reference, may be to be added to the main article?

Noticed that with out wiki the job queue counter got stuck at 1 and would not reduce to 0. There is a table in the database, called  or   that has a list of the jobs to be performed. Checked that and it was empty. User:Simetrical said the following about it in #mediawiki the counter is deliberately inaccurate in recent versions. For speed, on large InnoDB tables. SELECT COUNT(*) FROM table; is slow on InnoDB, so it switched to a heuristic that's usually wrong.

--Dr DBW 24 October 2007

Valid Input Range
The documentation for this variable claims only values above 0 are allowed, but that's not true. The actual program logic in Wiki.php readily accepts such input, and behaves exactly as expected with $wgJobRunRate <= 0 (doJobs returns immediately). Not only is this valid, but also desirable on small wikis. I'm going to use this setting as soon as I've set up a cron job to do handle the job queue, since page loads with a non-empty queue are painfully slow, near-instantaneous otherwise.

--HonoredMule 11:25, 25 April 2011 (UTC)