Allow configuration of periodic task interval
authorNik Everett <neverett@wikimedia.org>
Wed, 26 Feb 2014 14:07:29 +0000 (09:07 -0500)
committerNik Everett <neverett@wikimedia.org>
Wed, 26 Feb 2014 14:54:25 +0000 (09:54 -0500)
commit58305f675d7dd111243981b2c91462a678feeb53
treecfb7e54d0b9e2cc25592283d3b7378f36abf05ff
parentd7eb35d056ab038de8dece2ace2723de3304f459
Allow configuration of periodic task interval

The redis job queue supports delayed jobs but it only checks for them
once every 10 pops or once every five minutes.  This is fine in production
but when running integration tests we want faster turn around time.  This
allows us to force the periodic task execution to one second in integration
tests which speeds them up substantially but leave the standard periodic
time calculation in production which is optimized for lower load.

Change-Id: I74cf3ca78660bd1ae7c1c88c278a15b4a56f6064
includes/job/JobQueueRedis.php