this is actually redundant with the same checking in DAGScheduler (L406)