diff --git a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php index 52f4fe2f37..a6b9ef8488 100644 --- a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php +++ b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php @@ -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(); diff --git a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php index 58e76e3462..545c412f86 100644 --- a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php +++ b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php @@ -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,