Focus on the outcome and not the process because the end result is what you are working for.
I hate running but love how I feel afterwards: lighter, faster, stronger, energetic. But I have to get over how I feel in my head.
I dread the sweat in my eyes, the pain I sometimes in my knees. But I keep going because I know and remind myself of what I am running for.
Your race is not over, focus on the outcome, remind yourself of the why behind starting your race.