Add pending scheduled task to the algorithm
Remove resources that are assigned to task that are in scheduled tasks