As bfb says, they can die in a couple of rides or last for aeons. The trick is to avoid water ingress, and to make sure they are well greased to start with. Standard HT2 tend to be relatively short lived, and although some would say you can regrease the bearings, the seals are very easily damaged and don't go back on properly, so very limited lifespan. I always make sure there is a thick layer of grease around the seals and never, ever get any water under pressure anywhere near them.
However, according to those in the know, the biggest killer of HT2 bearings is lateral load through ham-fisted fitting of cranks and especially overtightening of the preload plastic insert. (That's all well and good, but I remember one SLX crank that had to be drifted through the bearings with a lump hammer it was such a tight fit.
)
You need to make sure the preload cap is only on enough to take the play off the cranks. If it shows any resistance whatsoever it's too tight and the crank needs slackening off and starting again. On a well used crank that can mean no more than finger tight on the star shaped tool.