Fixed JobQueueAggregatorRedis to handle empty collections
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 15 Jul 2014 20:43:35 +0000 (13:43 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 22 Jul 2014 15:12:02 +0000 (15:12 +0000)
commit821fadb67d42b35d2f7889e949ed062fa6605bf9
tree690e1e9a2b31d831ecdead87ea57cbf8061ef5c4
parentb2e5019b9295b181c41d5dca3e1a99d8d7baf5c2
Fixed JobQueueAggregatorRedis to handle empty collections

* Previously it would keep polling if the hash was empty since
  empty and non-existing collections are the same in Redis.
* Also turned off the pointless PHP serialization.
* Bumped the cache version key; this change should be deployed
  in all wikis at once, along with updating the runners.

Change-Id: I33dc55bc579bf678f14a5383e9e2c3c35231d599
includes/jobqueue/aggregator/JobQueueAggregatorRedis.php