Skip to content

Commit

Permalink
Merge pull request #21 from xiaocaigua/4.x
Browse files Browse the repository at this point in the history
add pool status
  • Loading branch information
kiss291323003 authored Jan 4, 2020
2 parents 54313c2 + 138e298 commit 2a0bd04
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 2a0bd04

Please sign in to comment.