Differential D10522 Diff 25291 src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php
<?php | <?php | ||||
final class PhabricatorWorkerActiveTask extends PhabricatorWorkerTask { | final class PhabricatorWorkerActiveTask extends PhabricatorWorkerTask { | ||||
protected $failureTime; | protected $failureTime; | ||||
private $serverTime; | private $serverTime; | ||||
private $localTime; | private $localTime; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_IDS => self::IDS_COUNTER, | self::CONFIG_IDS => self::IDS_COUNTER, | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'dataID' => array( | |||||
'columns' => array('dataID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function setServerTime($server_time) { | public function setServerTime($server_time) { | ||||
$this->serverTime = $server_time; | $this->serverTime = $server_time; | ||||
$this->localTime = time(); | $this->localTime = time(); | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |