Enabling flexible job scheduling for heterogeneous modular supercomputers