+ [task#128752,doing,0.2h] filter not running server.

This commit is contained in:
caoyanyi
2024-09-20 09:46:34 +08:00
committed by 李阳
parent d35fe50682
commit 04e95df912
+9
View File
@@ -1918,5 +1918,14 @@ class repoZen extends repo
$this->loadModel('pipeline');
if($this->config->inQuickon && $this->config->inQuickon !== 'false') return $this->pipeline->getPairs($type);
$serverList = $this->pipeline->getList($type);
$instanceList = $this->loadModel('space')->getSpaceInstances(0);
$runningApps = array();
foreach($instanceList as $instance)
{
if($instance->status == 'running' && strpos(",{$type},", ",{$instance->chart},") !== false) $runningApps[$instance->id] = $instance->domain;
}
}
}