Life, and its achievements, should be appreciated each for what they are. They are all parts of a total sum, which can rarely be seen in the abstract from just one of those parts. Therefore, when you have accomplished something, even if it is not exactly what you are hoping for, do your very best to be happy with the achievement. This does not mean you are content and will not try for more. It means you can be aware it is not your finished product.
And while you are at it, hug your loved ones.