Like any powerful drug, sadness must be carefully controlled and used only in the right way and at the right time.
A person must manage his sadness, not the other way around.
And the way to accomplish this is to designate specific times in which to allow oneself to be sad.
–Rabbi Adin Steinsaltz
From Learning from the Tanya, Chapter 26, by Rabbi Adin Steinsaltz