mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-10 11:28:35 +02:00
Summary: Ref T1670. Use events and direct database writes instead of Conduit. Deprecate the Conduit methods. Test Plan: Ran daemons, used the console to review daemon event logs. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1670 Differential Revision: https://secure.phabricator.com/D6536
25 lines
535 B
PHP
25 lines
535 B
PHP
<?php
|
|
|
|
final class PhabricatorDaemonLog extends PhabricatorDaemonDAO {
|
|
|
|
const STATUS_UNKNOWN = 'unknown';
|
|
const STATUS_RUNNING = 'run';
|
|
const STATUS_DEAD = 'dead';
|
|
const STATUS_WAIT = 'wait';
|
|
const STATUS_EXITED = 'exit';
|
|
|
|
protected $daemon;
|
|
protected $host;
|
|
protected $pid;
|
|
protected $argv;
|
|
protected $status;
|
|
|
|
public function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_SERIALIZATION => array(
|
|
'argv' => self::SERIALIZATION_JSON,
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
}
|