tony-framework / TonY

TonY is a framework to natively run deep learning frameworks on Apache Hadoop.
https://tony-project.ai
Other
708 stars 164 forks source link

Fix ConcurrentModificationException when we traverse registeredTasks #664 #665

Closed oliverhu closed 2 years ago

oliverhu commented 2 years ago

registeredTasks is updated in a separate thread and can be updated whie we traverse it. We need to make sure registeredTasks can be safely passed to .stream().forEach().