job graph scheduling algorithm fixes