getTaskCore method added to get the available core for running MG task
getTaskCore method will first fetch the socket id and use that socket id to find the core that is not running.
getTaskCore method will first fetch the socket id and use that socket id to find the core that is not running.