SpecialRunJobs: optional output stats and status.
authordaniel <dkinzler@wikimedia.org>
Fri, 6 Sep 2019 16:40:07 +0000 (18:40 +0200)
committerdaniel <dkinzler@wikimedia.org>
Wed, 11 Sep 2019 12:04:29 +0000 (14:04 +0200)
commitc28609ac617d8fc4987338955003fe2c6b687a54
treedd04c449b04b5ffd53f247936f205d94ffdd8703
parent209f2d220fd90f323fcfa6b303a11ca9344ff8da
SpecialRunJobs: optional output stats and status.

This adds a parameter to SpecialRunJobs that lets it output statistics
about the jobs it has run.

The 'reached' field can be used to detect when the queue is emopty,
which is essential to know for clients that want to flush the entire
job queue, to ensure that all effects of any actions they have taken
have been processed.

More specifically, this provides a way for an external testing framework
to run all jobs after an action, so it can observe and assert the
effects of that action.

Bug: T231822
Change-Id: Ibb38490afca71efeb67300b9665951c429c19a3c
includes/specials/SpecialRunJobs.php