Differential D12806 Diff 30846 src/infrastructure/daemon/workers/query/PhabricatorWorkerTriggerQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/query/PhabricatorWorkerTriggerQuery.php
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | protected function loadPage() { | ||||
| return $triggers; | return $triggers; | ||||
| } | } | ||||
| protected function buildJoinClause(AphrontDatabaseConnection $conn_r) { | protected function buildJoinClause(AphrontDatabaseConnection $conn_r) { | ||||
| $joins = array(); | $joins = array(); | ||||
| if (($this->nextEpochMin !== null) || | if (($this->nextEpochMin !== null) || | ||||
| ($this->nextEpochMax !== null) || | ($this->nextEpochMax !== null) || | ||||
| ($this->order == PhabricatorWorkerTriggerQuery::ORDER_EXECUTION)) { | ($this->order == self::ORDER_EXECUTION)) { | ||||
| $joins[] = qsprintf( | $joins[] = qsprintf( | ||||
| $conn_r, | $conn_r, | ||||
| 'JOIN %T e ON e.triggerID = t.id', | 'JOIN %T e ON e.triggerID = t.id', | ||||
| id(new PhabricatorWorkerTriggerEvent())->getTableName()); | id(new PhabricatorWorkerTriggerEvent())->getTableName()); | ||||
| } | } | ||||
| return implode(' ', $joins); | return implode(' ', $joins); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines | |||||