James Clear in an excerpt from Atomic Habits, his New York Times bestselling book.
....goals create an “either-or” conflict: either you achieve your goal and are successful or you fail and you are a disappointment. You mentally box yourself into a narrow version of happiness. This is misguided. It is unlikely that your actual path through life will match the exact journey you had in mind when you set out. It makes no sense to restrict your satisfaction to one scenario when there are many paths to success.
A systems-first mentality provides the antidote. When you fall in love with the process rather than the product, you don’t have to wait to give yourself permission to be happy. You can be satisfied anytime your system is running. And a system can be successful in many different forms, not just the one you first envision.
I've been thinking about this a lot recently; success isn't found in the destination, but in how you frame the journey. It was this thought process that helped me become teetotal, lose weight, and now it’s helping me reset my career path.