Differential D18693 Diff 44881 src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
Show First 20 Lines • Show All 697 Lines • ▼ Show 20 Lines | private function insertTask( | ||||
$data['commitID'] = $commit->getID(); | $data['commitID'] = $commit->getID(); | ||||
// If the repository is importing for the first time, we schedule tasks | // If the repository is importing for the first time, we schedule tasks | ||||
// at IMPORT priority, which is very low. Making progress on importing a | // at IMPORT priority, which is very low. Making progress on importing a | ||||
// new repository for the first time is less important than any other | // new repository for the first time is less important than any other | ||||
// daemon task. | // daemon task. | ||||
// If the repostitory has finished importing and we're just catching up | // If the repository has finished importing and we're just catching up | ||||
// on recent commits, we schedule discovery at COMMIT priority, which is | // on recent commits, we schedule discovery at COMMIT priority, which is | ||||
// slightly below the default priority. | // slightly below the default priority. | ||||
// Note that followup tasks and triggered tasks (like those generated by | // Note that followup tasks and triggered tasks (like those generated by | ||||
// Herald or Harbormaster) will queue at DEFAULT priority, so that each | // Herald or Harbormaster) will queue at DEFAULT priority, so that each | ||||
// commit tends to fully import before we start the next one. This tends | // commit tends to fully import before we start the next one. This tends | ||||
// to give imports fairly predictable progress. See T11677 for some | // to give imports fairly predictable progress. See T11677 for some | ||||
// discussion. | // discussion. | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |