Differential D12454 Diff 29950 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 139 Lines • ▼ Show 20 Lines | if ($triggers) { | ||||
$trigger->attachAction($action); | $trigger->attachAction($action); | ||||
} | } | ||||
} | } | ||||
return $triggers; | return $triggers; | ||||
} | } | ||||
private 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 == PhabricatorWorkerTriggerQuery::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', | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |