Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/worker/PhabricatorSearchWorker.php
Show All 9 Lines | public static function queueDocumentForIndexing($phid, $parameters = null) { | ||||
parent::scheduleTask( | parent::scheduleTask( | ||||
__CLASS__, | __CLASS__, | ||||
array( | array( | ||||
'documentPHID' => $phid, | 'documentPHID' => $phid, | ||||
'parameters' => $parameters, | 'parameters' => $parameters, | ||||
), | ), | ||||
array( | array( | ||||
'priority' => parent::PRIORITY_IMPORT, | 'priority' => parent::PRIORITY_IMPORT, | ||||
'objectPHID' => $phid, | |||||
)); | )); | ||||
} | } | ||||
protected function doWork() { | protected function doWork() { | ||||
$data = $this->getTaskData(); | $data = $this->getTaskData(); | ||||
$object_phid = idx($data, 'documentPHID'); | $object_phid = idx($data, 'documentPHID'); | ||||
$object = $this->loadObjectForIndexing($object_phid); | $object = $this->loadObjectForIndexing($object_phid); | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |