Description
The 'acceptNewTasks' argument is hard coded as a true.
// TODO - Later, acceptNewTask is to be set by the status of groom server. HeartbeatResponse heartbeatResponse = jobClient.heartbeat(status, justStarted, justInited, true, heartbeatResponseId); // here
It should be changed to acceptNewTasks. And if slaves (GroomServer) are unable to accept tasks, the acceptNewTasks should be changed to false.