added check for valid tasks or not incase we find a folder structure without valid sg assets