avoid race condition on dagScheduler's reference