@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Queue search indexing tasks at a new PRIORITY_INDEX, not PRIORITY_IMPORT

Summary:
Depends on D20175. Ref T12425. Ref T13253. Currently, importing commits can stall search index rebuilds, since index rebuilds use an older priority from before T11677 and weren't really updated for D16585.

In general, we'd like to complete all indexing tasks before continuing repository imports. A possible exception is if you rebuild an entire index with `bin/search index --rebuild-the-world`, but we could queue those at a separate lower priority if issues arise.

Test Plan: Ran some search indexing through the queue.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13253, T12425

Differential Revision: https://secure.phabricator.com/D20177

+2 -1
+1 -1
src/applications/search/worker/PhabricatorSearchWorker.php
··· 14 14 'parameters' => $parameters, 15 15 ), 16 16 array( 17 - 'priority' => parent::PRIORITY_IMPORT, 17 + 'priority' => parent::PRIORITY_INDEX, 18 18 'objectPHID' => $phid, 19 19 )); 20 20 }
+1
src/infrastructure/daemon/workers/PhabricatorWorker.php
··· 18 18 const PRIORITY_DEFAULT = 2000; 19 19 const PRIORITY_COMMIT = 2500; 20 20 const PRIORITY_BULK = 3000; 21 + const PRIORITY_INDEX = 3500; 21 22 const PRIORITY_IMPORT = 4000; 22 23 23 24 /**