Rewrite the caching code in nextJobDB.php so that jobs-loop.sh has a chance of being...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 10 Mar 2011 04:10:27 +0000 (04:10 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 10 Mar 2011 04:10:27 +0000 (04:10 +0000)
commitec277aed726f57b3d0ae613a2cf8e3a9509ac053
tree42c1e273090b0b7af8cef190d831f3407b0905fd
parente20d18cbf3a1725f0cc2a482954cab81aa17399f
Rewrite the caching code in nextJobDB.php so that jobs-loop.sh has a chance of being able to exit from the "high-priority" loop.

The current syndrome is that when the cache expires, a small number of high-priority jobs are added. These jobs are quickly cleared, but the job runners do not continue on to other things, because the cache keeps returning the same small list of wikis for 5 minutes. After 5 minutes, there are a few more jobs in the high-priority list, so the cycle continues.
maintenance/nextJobDB.php