[JobQueue] Added support for retrying jobs when runners die.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 24 Oct 2012 00:29:54 +0000 (17:29 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 14 Nov 2012 01:25:03 +0000 (01:25 +0000)
commitcd000590ee694af73edb05b5e37b60b5e2b77fd5
treeb43bbcb5a7026812c0c3600351ca9e39c48378ba
parentc645eceef42eeaa7f9e24dd4711eef158fd8983c
[JobQueue] Added support for retrying jobs when runners die.

* This adds a new 'claimTTL' setting which recycles jobs into the queue
  if they have been claimed for longer than that duration (in seconds).
* This also purges jobs for such cases when job retries are not enabled.
* This adds a new job_attempts column and adds an index to improve the
  query and semantics for FIFO ordered queues.

Change-Id: Idb6217a694d86a4d6fc881768deed424628f015d
includes/installer/MysqlUpdater.php
includes/installer/SqliteUpdater.php
includes/job/JobQueue.php
includes/job/JobQueueDB.php
maintenance/archives/patch-job_attempts.sql [new file with mode: 0644]
maintenance/tables.sql