jobqueue: make JobQueueDB stricter about broken job_params fields
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 26 Apr 2019 20:11:09 +0000 (13:11 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 27 Apr 2019 00:14:12 +0000 (00:14 +0000)
commitaa4f4d6b53ae3551678a5ba7e1a021492f090287
tree314a6639fe4a4e7cfb0011f3a34c6a181daaa5c7
parent3715af91e2ce9244475c7f5fc777942269c6a18c
jobqueue: make JobQueueDB stricter about broken job_params fields

Also rename throwDBException() to getDBException() and make the
callers throw the result to avoid phpstorm warnings. Remove $row
assignment that is always overridden as well.

Change-Id: I84bc4b11f10152eada6dd6f4788c4f79dcb4a2fb
includes/jobqueue/JobQueueDB.php
includes/jobqueue/JobQueueRedis.php