3 final class PhabricatorRepositoryPullLocalDaemonModule
4 extends PhutilDaemonOverseerModule
{
8 public function shouldWakePool(PhutilDaemonPool
$pool) {
9 $class = $pool->getPoolDaemonClass();
10 if ($class != 'PhabricatorRepositoryPullLocalDaemon') {
14 if ($this->shouldThrottle($class, 1)) {
18 $table = new PhabricatorRepositoryStatusMessage();
19 $table_name = $table->getTableName();
20 $conn = $table->establishConnection('r');
24 'SELECT id FROM %T WHERE statusType = %s
25 AND id > %d ORDER BY id DESC LIMIT 1',
27 PhabricatorRepositoryStatusMessage
::TYPE_NEEDS_UPDATE
,
34 $this->cursor
= (int)$row['id'];