[Cmii][ImageSync] - reformat agent-go - 2
This commit is contained in:
@@ -96,9 +96,6 @@ func INIT(octopusAgentConfigFileName string, agentServerInfoConf string) chan bo
|
||||
}
|
||||
}
|
||||
|
||||
//<-initForeverHandle
|
||||
//close(initFromServerQueue.ReceiveChan.InitRChan)
|
||||
|
||||
// 建立 运行时 RabbitMQ连接
|
||||
runtimeConnectorQueue := buildAndStartBusinessRuntimeQueue(a_agent.AgentServerInfoCache.TopicName)
|
||||
|
||||
@@ -153,6 +150,7 @@ func buildAndStartBusinessRuntimeQueue(agentTopicName string) chan bool {
|
||||
|
||||
// cache it
|
||||
rabbitmq.BusinessRuntimeQueue = octopusMsgQueue
|
||||
rabbitmq.OctopusToServerQueue = octopusToServerQueue
|
||||
|
||||
return businessForeverChan
|
||||
}
|
||||
@@ -161,12 +159,9 @@ func buildAndStartBusinessRuntimeQueue(agentTopicName string) chan bool {
|
||||
func activatedOctopusAgentModules() {
|
||||
|
||||
// Agent
|
||||
err := P.Submit(func() {
|
||||
_ = P.Submit(func() {
|
||||
a_agent.Activate()
|
||||
})
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// Executor
|
||||
_ = P.Submit(func() {
|
||||
a_executor.Activate()
|
||||
|
||||
Reference in New Issue
Block a user