1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/src/infrastructure
epriestley 0ed281d25e Make taskmaster consumption of failed tasks more FIFO-ey
Summary:
Ref T1049. See discussion in D7745. We have some specific interest in this for D7745, but generally we want to consume tasks with expired leases in roughly FIFO order, just like we consume new tasks in roughly FIFO order. Currently, when we select an expired task we order them by `id`, but this is the original insert order, not lease expiration order. Instead, order by `leaseExpires`.

This query is actually much better than the old one was, since the WHERE part is `leaseExpries < VALUE`.

Test Plan: Ran `EXPLAIN` on the query. Ran a taskmaster in debug mode and saw it lease new and expired tasks successfully.

Reviewers: hach-que, btrahan

Reviewed By: hach-que

CC: aran

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D7746
2013-12-08 21:07:13 -08:00
..
__tests__ In unit test environments, install all applications 2013-05-16 12:25:26 -07:00
celerity Multicolor headers 2013-12-06 12:08:11 -08:00
customfield PHUIPropertyListView 2013-10-11 07:53:56 -07:00
daemon Make taskmaster consumption of failed tasks more FIFO-ey 2013-12-08 21:07:13 -08:00
diff Replace some hsprintf() with phutil_tag() and phutil_tag_div() Depends on D7545. 2013-11-09 10:48:19 -08:00
edges Add an edge between Passphrase credentials and objects which use them 2013-11-22 15:23:23 -08:00
env Put PATH in $_ENV after we adjust it so ExecFuture/etc pick it up 2013-11-27 21:03:00 -08:00
events Make event-triggered actions more aware of application access 2013-10-21 17:00:50 -07:00
internationalization Show an "approval queue" item on the home page for admins, and sort out menu item visibility 2013-11-13 11:24:38 -08:00
javelin Decentralize phtize 2013-11-04 11:38:28 -08:00
lint Remove deprecated javelin_render_tag() and phabricator_render_form() 2013-07-18 13:30:25 -07:00
log Add an SSH access log 2013-12-05 17:00:48 -08:00
markup Timeout interpreter {{{ ... }}} blocks after 15 seconds 2013-11-25 14:55:25 -08:00
query Fix an error in the PolicyFilter algorithm 2013-12-05 17:00:53 -08:00
ssh Support serving SVN repositories over SSH 2013-11-11 12:19:06 -08:00
storage Implement snapshots in Phragment 2013-12-09 08:24:50 +11:00
testing Implement an approval queue 2013-11-13 11:24:56 -08:00
time Consolidate some datetime code and add unit tests 2013-06-03 12:58:11 -07:00
util Implementation of VCS passwords against user. 2013-11-01 08:34:11 -07:00
PhabricatorEditor.php Use ManiphestTaskQuery in nearly all interfaces 2013-09-25 13:44:14 -07:00