Race organizers canceled the New York City triathlon this weekend as the city remained under a heat emergency; power officials were confident the grid would hold.