This was ever before Jesus Christ. Ultimately it was the divine will of the Father that guided Jesus Christ. This divine will of the Father was that Jesus Christ should suffer the ignominy of a shameful death. Jesus Christ accepted that will in its entirety. Before Him was a picture of this shameful death and all its circumstances, as the predictions indicate.
Anticipation is hard on human nature.
Yet Jesus Christ moved forward to this shameful death. We must not imagine that Jesus Christ was a superman to whom the ordinary emotions and feelings of human nature were foreign. He did have control over them, a control we do not have. He had them however. The story of the agony in the Garden tells us what the anticipation of His sufferings and death could have made Him undergo, if He had allowed it.