1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src
Joshua Spence 9a679bf374 Allow worker tasks to have priorities
Summary: Fixes T5336. Currently, `PhabricatorWorkerLeaseQuery` is basically FIFO. It makes more sense for the queue to be a priority-queue, and to assign higher priorities to alerts (email and SMS).

Test Plan: Created dummy tasks in the queue (with different priorities). Verified that the priority field was set correctly in the DB and that the priority was shown on the `/daemon/` page. Started a `PhabricatorTaskmasterDaemon` and verified that the higher priority tasks were executed before lower priority tasks.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5336

Differential Revision: https://secure.phabricator.com/D9871
2014-07-12 03:02:06 +10:00
..
__tests__ Minor change to PhutilInfrastructureTestCase 2014-07-10 07:36:14 +10:00
aphront Remove @group annotations 2014-07-10 08:12:48 +10:00
applications Allow worker tasks to have priorities 2014-07-12 03:02:06 +10:00
docs Remove @group annotations 2014-07-10 08:12:48 +10:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Allow worker tasks to have priorities 2014-07-12 03:02:06 +10:00
view Modernize "repositories" typeahead datasource 2014-07-10 16:18:04 -07:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Modernize "projects" typeahead datasource 2014-07-10 17:28:29 -07:00