A Multistage Approach for Scheduling Task Graphs on Parallel Machines