Skip to content

Commit

Permalink
add pool status
Browse files Browse the repository at this point in the history
  • Loading branch information
xcg committed Jan 4, 2020
1 parent e2f60f0 commit 138e298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WorkerProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ function onAccept(Socket $socket)
case Command::SERVICE_STATUS:
{
$ret = [];
/**@var AbstractPool $item */
foreach ($serviceList as $serviceName => $item) {
$ret['pool'][$serviceName] = $item->status();
$table = TableManager::getInstance()->get($serviceName);
if ($table) {
foreach ($table as $action => $info) {
$ret[$serviceName][$action] = $info;
$ret['services'][$serviceName][$action] = $info;
}
}
}
Expand Down

0 comments on commit 138e298

Please sign in to comment.