Reallocating tasks that have no machines