Data-driven scheduling