MCPcopy Create free account
hub / github.com/astercloud/aster / GetAgentPID

Method GetAgentPID

pkg/workflow/actor_engine.go:171–176  ·  view source on GitHub ↗

GetAgentPID 获取节点对应的 Agent PID

(nodeID string)

Source from the content-addressed store, hash-verified

169
170// GetAgentPID 获取节点对应的 Agent PID
171func (e *ActorEngine) GetAgentPID(nodeID string) (*actor.PID, bool) {
172 e.agentPIDsMu.RLock()
173 defer e.agentPIDsMu.RUnlock()
174 pid, ok := e.agentPIDs[nodeID]
175 return pid, ok
176}
177
178// StopAgent 停止指定节点的 Agent
179func (e *ActorEngine) StopAgent(nodeID string) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected