[JobQueue] Re-try jobs that fail normally.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 31 Jan 2013 04:14:56 +0000 (20:14 -0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 31 Jan 2013 06:26:20 +0000 (06:26 +0000)
commit77ae02cebf73945f4171b1fd6a24432890d5a8a1
tree7c4df68e6a1e9b09231edd29dff4a485827e3d67
parente4ff0c75675144f1aefe61dcb49658e0cb9154e2
[JobQueue] Re-try jobs that fail normally.

* Jobs will be re-attempted if run() returns false.
  This means that claimTTL is useful beyond just the case
  where runners get killed in the middle of a job or an
  uncaught exception is thrown.
* Moved MAX_ATTEMPTS constant up to base class.
* Clarified docs a bit.

Change-Id: Id7f970e82a63aa563e9a7a023ce32e5d6680433a
includes/job/JobQueue.php
includes/job/JobQueueDB.php
maintenance/runJobs.php