In the sentence "The graduation ceremony lasted only two hours," the part "lasted only two hours" is the complete predicate.
The complete predicate includes the verb and all the words that tell what the subject does or is. In this case, "lasted" is the verb, and "only two hours" is part of the predicate that gives more information about the action of the verb.