You have to enjoy the process of whatever it is you're doing. If your enjoyment relies totally on goals, that's how you end up in the situation Schopenhauer believed we are trapped in.
Goals are good but you have to enjoy the journey. This is no big mystery. But it's something a lot of people overlook because choosing a goal is how you get started on a journey.