debugging race conditions with max workers