1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-02 23:49:19 +01:00
phorge-phorge/src/infrastructure/daemon/workers
epriestley b5f7e9eec6 Reverse meaning of task priority column
Summary:
Ref T6615. Mixing ASC and DESC ordering on a multipart key makes it dramatically less effective (or perhaps totally ineffective).

Reverse the meaning of the `priority` column so it goes in the same direction as the `id` column (both ascending, lower values execute sooner).

Test Plan:
  - Queued 1.2M tasks with `bin/worker flood`.
  - Processed ~1 task/second with `bin/phd debug taskmaster` before patch.
  - Applied patch, took ~5 seconds for ~1.2M rows.
  - Processed ~100-200 tasks/second with `bin/phd debug taskmaster` after patch.
  - "Next in Queue" query on daemon page dropped from 1.5s to <1ms.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: aklapper, 20after4, epriestley

Maniphest Tasks: T6615

Differential Revision: https://secure.phabricator.com/D10895
2014-11-24 11:10:35 -08:00
..
__tests__ Reverse meaning of task priority column 2014-11-24 11:10:35 -08:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
management Add bin/worker flood, for flooding the task queue with work 2014-11-24 11:10:15 -08:00
query Reverse meaning of task priority column 2014-11-24 11:10:35 -08:00
storage Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00
PhabricatorTaskmasterDaemon.php Send graceful shutdown signals to daemons in Phabricator 2014-08-11 20:18:31 -07:00
PhabricatorWorker.php Reverse meaning of task priority column 2014-11-24 11:10:35 -08:00