Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php
Show All 11 Lines | abstract class PhabricatorWorkerTask extends PhabricatorWorkerDAO { | ||||
protected $priority; | protected $priority; | ||||
private $data; | private $data; | ||||
private $executionException; | private $executionException; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'taskClass' => 'text255', | 'taskClass' => 'text64', | ||||
'leaseOwner' => 'text255?', | 'leaseOwner' => 'text64?', | ||||
'leaseExpires' => 'epoch?', | 'leaseExpires' => 'epoch?', | ||||
epriestley: We control these and they're alwasy short. | |||||
'failureCount' => 'uint32', | 'failureCount' => 'uint32', | ||||
'failureTime' => 'epoch?', | 'failureTime' => 'epoch?', | ||||
'priority' => 'uint32', | 'priority' => 'uint32', | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
final public function setExecutionException(Exception $execution_exception) { | final public function setExecutionException(Exception $execution_exception) { | ||||
Show All 39 Lines |
We control these and they're alwasy short.