[JobQueue] Improved job recycle rate for small queues.
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 12 Jan 2013 00:13:29 +0000 (16:13 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 6 Feb 2013 17:49:34 +0000 (09:49 -0800)
commit0ca0e1296c2a2e80f913ab891aa1e31781b87102
tree466841280e2c12055d6a3180d93dbc2200565b5c
parentd1f8c02d06888a32c82907d354d97dca162d49f6
[JobQueue] Improved job recycle rate for small queues.

* Make the recycling a bit more periodic rather than based on
  how often pop() gets called essentially. This works better if
  a queue does not have jobs inserted very often.

Change-Id: I64fbc8afbb1cf096717ba4bfc6fe7b7715abdb72
includes/job/JobQueue.php
includes/job/JobQueueDB.php
includes/job/JobQueueGroup.php
maintenance/nextJobDB.php
maintenance/runJobs.php