mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Examine fewer daemons for variant config
Summary: Right now, if a daemon dies it can leave the setup warning around for like 10 minutes or something until we reap it. Tighten the warning so we only care about actively running daemons. Test Plan: Checked setup issues. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12088
This commit is contained in:
parent
106ca70acb
commit
bc28b2c3a8
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,7 @@ final class PhabricatorDaemonsSetupCheck extends PhabricatorSetupCheck {
|
|||
|
||||
$task_daemon = id(new PhabricatorDaemonLogQuery())
|
||||
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||
->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE)
|
||||
->withStatus(PhabricatorDaemonLogQuery::STATUS_RUNNING)
|
||||
->withDaemonClasses(array('PhabricatorTaskmasterDaemon'))
|
||||
->setLimit(1)
|
||||
->execute();
|
||||
|
|
|
@ -5,6 +5,7 @@ final class PhabricatorDaemonLogQuery
|
|||
|
||||
const STATUS_ALL = 'status-all';
|
||||
const STATUS_ALIVE = 'status-alive';
|
||||
const STATUS_RUNNING = 'status-running';
|
||||
|
||||
private $ids;
|
||||
private $notIDs;
|
||||
|
@ -170,6 +171,10 @@ final class PhabricatorDaemonLogQuery
|
|||
switch ($status) {
|
||||
case self::STATUS_ALL:
|
||||
return array();
|
||||
case self::STATUS_RUNNING:
|
||||
return array(
|
||||
PhabricatorDaemonLog::STATUS_RUNNING,
|
||||
);
|
||||
case self::STATUS_ALIVE:
|
||||
return array(
|
||||
PhabricatorDaemonLog::STATUS_UNKNOWN,
|
||||
|
|
Loading…
Reference in a new issue