[batch] fix scheduler error if allocated_cores not found (#7707)
[batch] fix scheduler error if allocated_cores not found (#7707)

* [batch] fix scheduler error if allocated_cores not found

* fix

hail-is/hail,danking/hail,hail-is/hail,cseed/hail,danking/hail,cseed/hail,danking/hail,danking/hail,cseed/hail,danking/hail,hail-is/hail,hail-is/hail,danking/hail,cseed/hail,cseed/hail,danking/hail,hail-is/hail,cseed/hail,cseed/hail,danking/hail,cseed/hail,hail-is/hail,hail-is/hail,hail-is/hail