taskmanager/agent.go
func NewAgent(t TaskManagerInterface, callerName string) *Agent {
	return &Agent{
		killTaskPoller:  make(chan bool, 1),
		processComplete: make(chan bool, 1),
		taskPollEmitter: make(chan bool, 1),
		statusEmitter:   make(chan string, 1),
		taskManager:     t,
		task:            t.NewTask(callerName, TaskAgentLongRunning, AgentTaskStatusInitializing),
	}
}
func NewAgent(t TaskManagerInterface, callerName string) *Agent {
	return &Agent{
		killTaskPoller:  make(chan bool, 1),
		processComplete: make(chan bool, 1),
		taskPollEmitter: make(chan bool, 1),
		statusEmitter:   make(chan string, 1),
		taskManager:     t,
		task:            t.NewTask(callerName, TaskAgentLongRunning, AgentTaskStatusInitializing),
	}
}
//NewAgent -- creates a new initialized agent object