We can call this "the progress principle": Pleasure comes more from making progress toward goals than from achieving them. Shakespeare captured it perfectly: "Things won are done; joy's soul lies in the doing."
Jonathan Haidt (2006). “The Happiness Hypothesis: Finding Modern Truth in Ancient Wisdom”, p.84, Basic Books